chiark / gitweb /
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 01af34c..94991a3 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;
         }