diff options
author | Josep Torra <n770galaxy@gmail.com> | 2018-10-09 00:14:48 +0200 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2018-10-09 17:10:39 +0200 |
commit | 456bd21674f12dcac51cd3d0e52d833294668ff6 (patch) | |
tree | d5bab64b85de320177585b07cf3a1cbce3599d36 | |
parent | 2dee251367ae7436180f4a97fddb8097d0014705 (diff) |
noblockshm-fixes
-rw-r--r-- | sys/shm/shmpipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c index b126668c9..03a68ca14 100644 --- a/sys/shm/shmpipe.c +++ b/sys/shm/shmpipe.c @@ -787,7 +787,7 @@ sp_client_open (const char *path) if (flags < 0) goto error; - if (fcntl (self->main_socket, F_SETFL, flags | FD_CLOEXEC) < 0) + if (fcntl (self->main_socket, F_SETFL, flags | O_NONBLOCK | FD_CLOEXEC) < 0) goto error; sock_un.sun_family = AF_UNIX; |