chiark / gitweb /
util: replace close_pipe() with new safe_close_pair()
[elogind.git] / src / libsystemd / sd-bus / bus-socket.c
index bccf50122213aa43509c95fe856ddcf9bbd79bec..2e8f008be47d2b6b40dccfef91bb6592ee12d501 100644 (file)
@@ -736,7 +736,7 @@ int bus_socket_exec(sd_bus *b) {
 
         pid = fork();
         if (pid < 0) {
 
         pid = fork();
         if (pid < 0) {
-                close_pipe(s);
+                safe_close_pair(s);
                 return -errno;
         }
         if (pid == 0) {
                 return -errno;
         }
         if (pid == 0) {