summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libdaemon/dnonblock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdaemon/dnonblock.c b/libdaemon/dnonblock.c
index cdbe482..ff1f28d 100644
--- a/libdaemon/dnonblock.c
+++ b/libdaemon/dnonblock.c
@@ -33,9 +33,9 @@ int daemon_nonblock(int fd, int b) {
return -1;
if (b)
- c = a | O_NDELAY;
+ c = a | O_NONBLOCK;
else
- c = a & ~O_NDELAY;
+ c = a & ~O_NONBLOCK;
if (c == a)
return 0;