Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Try to use FD_CLOEXEC instead of mass-closing everywhere.
[ashd.git]
/
lib
/
mtio.c
diff --git
a/lib/mtio.c
b/lib/mtio.c
index
b594f0d
..
e4166f5
100644
(file)
--- a/
lib/mtio.c
+++ b/
lib/mtio.c
@@
-180,6
+180,7
@@
void ioloop(void)
time_t now, timeout;
epfd = epoll_create(128);
+ fcntl(epfd, F_SETFD, FD_CLOEXEC);
for(bl = blockers; bl; bl = nbl) {
nbl = bl->n;
if(regfd(bl))