diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-24 03:22:44 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-24 03:22:44 +0100 |
commit | 3d94f76c99da13e5603831d0b278f8c8c21bcb02 (patch) | |
tree | 15b0ccaa3006d76d28b4f23412c5c35ec6494f8e /src/libsystemd/sd-event/test-event.c | |
parent | 6a0f1f6d5af7c7300d3db7a0ba2b068f8abd222b (diff) |
util: replace close_pipe() with new safe_close_pair()
safe_close_pair() is more like safe_close(), except that it handles
pairs of fds, and doesn't make and misleading allusion, as it works
similarly well for socketpairs() as for pipe()s...
Diffstat (limited to 'src/libsystemd/sd-event/test-event.c')
-rw-r--r-- | src/libsystemd/sd-event/test-event.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd/sd-event/test-event.c b/src/libsystemd/sd-event/test-event.c index 68bb2b0ca8..3342ec6968 100644 --- a/src/libsystemd/sd-event/test-event.c +++ b/src/libsystemd/sd-event/test-event.c @@ -239,10 +239,10 @@ int main(int argc, char *argv[]) { sd_event_unref(e); - close_pipe(a); - close_pipe(b); - close_pipe(d); - close_pipe(k); + safe_close_pair(a); + safe_close_pair(b); + safe_close_pair(d); + safe_close_pair(k); return 0; } |