chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: replace close_nointr_nofail() by a more useful safe_close()
[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..1b9d98fa7559b6f5bc71b549bbbad2618604b4a7 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;
}