Commit 09169eb
committed
Use cleanup_fd to close intermediate pid sockets
This closes the fd and sets the variable to -1 as a single operation,
which is easier to reason about because it does not leave any variables
containing dangling references to invalid fds.
Signed-off-by: Simon McVittie <smcv@collabora.com>1 parent 3f0847d commit 09169eb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3148 | 3148 | | |
3149 | 3149 | | |
3150 | 3150 | | |
3151 | | - | |
| 3151 | + | |
3152 | 3152 | | |
3153 | 3153 | | |
3154 | 3154 | | |
| |||
3234 | 3234 | | |
3235 | 3235 | | |
3236 | 3236 | | |
3237 | | - | |
| 3237 | + | |
3238 | 3238 | | |
3239 | 3239 | | |
3240 | 3240 | | |
| |||
0 commit comments