chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sd-resolve: rework sd-resolve to be callback based, similar in style to sd-bus and...
[elogind.git]
/
src
/
libsystemd
/
sd-bus
/
test-bus-chat.c
diff --git
a/src/libsystemd/sd-bus/test-bus-chat.c
b/src/libsystemd/sd-bus/test-bus-chat.c
index 113d15ba9743454e1e2e3b9e113752b3e051e77a..c0abc7a69795864a8ba34b16980928a4970efa60 100644
(file)
--- a/
src/libsystemd/sd-bus/test-bus-chat.c
+++ b/
src/libsystemd/sd-bus/test-bus-chat.c
@@
-232,7
+232,7
@@
static int server(sd_bus *bus) {
if (write(fd, &x, 1) < 0) {
log_error("Failed to write to fd: %m");
-
close_nointr_nofail
(fd);
+
safe_close
(fd);
goto fail;
}
@@
-356,7
+356,7
@@
finish:
sd_bus_error_free(&error);
-
close_pipe
(pp);
+
safe_close_pair
(pp);
return INT_TO_PTR(r);
}