projects
/
oweals
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f688c7a
)
libubus: mark ubus socket with close-on-exec
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 31 Aug 2014 12:10:26 +0000
(14:10 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 31 Aug 2014 12:10:26 +0000
(14:10 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus-io.c
patch
|
blob
|
history
diff --git
a/libubus-io.c
b/libubus-io.c
index 31dad279238aab44d9e5be69cf3ffb1bf40e7926..3280e41a37489ff084624675e76c1966bf25dbab 100644
(file)
--- a/
libubus-io.c
+++ b/
libubus-io.c
@@
-379,7
+379,7
@@
int ubus_reconnect(struct ubus_context *ctx, const char *path)
goto out_free;
ret = UBUS_STATUS_OK;
- fcntl(ctx->sock.fd, F_SETFL, fcntl(ctx->sock.fd, F_GETFL) | O_NONBLOCK);
+ fcntl(ctx->sock.fd, F_SETFL, fcntl(ctx->sock.fd, F_GETFL) | O_NONBLOCK
| O_CLOEXEC
);
ubus_refresh_state(ctx);