chiark / gitweb /
util: replace close_nointr_nofail() by a more useful safe_close()
[elogind.git] / src / libsystemd / sd-bus / test-bus-chat.c
index 113d15ba9743454e1e2e3b9e113752b3e051e77a..1b9d98fa7559b6f5bc71b549bbbad2618604b4a7 100644 (file)
@@ -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;
                         }