]> err.no Git - systemd/commitdiff
socket: reuse existing FIFOs
authorLennart Poettering <lennart@poettering.net>
Sat, 16 Apr 2011 01:42:37 +0000 (03:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 16 Apr 2011 01:42:37 +0000 (03:42 +0200)
src/socket.c

index 01af34c1052585736dcd89406bdb874f2663c077..94991a35f58fc068982b6c1b01ea9224579d060f 100644 (file)
@@ -715,7 +715,7 @@ static int fifo_address_create(
         r = mkfifo(path, socket_mode);
         umask(old_mask);
 
-        if (r < 0) {
+        if (r < 0 && errno != EEXIST) {
                 r = -errno;
                 goto fail;
         }