]>
Commit | Line | Data |
---|---|---|
e7685a77 LP |
1 | @@ |
2 | expression fd; | |
3 | @@ | |
4 | - if (fd > 2) | |
5 | - safe_close(fd); | |
6 | + safe_close_above_stdio(fd); | |
7 | @@ | |
8 | expression fd; | |
9 | @@ | |
10 | - if (fd > 2) | |
11 | - fd = safe_close(fd); | |
12 | + fd = safe_close_above_stdio(fd); | |
13 | @@ | |
14 | expression fd; | |
15 | @@ | |
16 | - if (fd >= 3) | |
17 | - safe_close(fd); | |
18 | + safe_close_above_stdio(fd); | |
19 | @@ | |
20 | expression fd; | |
21 | @@ | |
22 | - if (fd >= 3) | |
23 | - fd = safe_close(fd); | |
24 | + fd = safe_close_above_stdio(fd); | |
25 | @@ | |
26 | expression fd; | |
27 | @@ | |
28 | - if (fd > STDERR_FILENO) | |
29 | - safe_close(fd); | |
30 | + safe_close_above_stdio(fd); | |
31 | @@ | |
32 | expression fd; | |
33 | @@ | |
34 | - if (fd > STDERR_FILENO) | |
35 | - fd = safe_close(fd); | |
36 | + fd = safe_close_above_stdio(fd); |