socket: set close on exec
Signed-off-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
9a7381d02a
commit
4722ba6c10
|
@ -121,6 +121,8 @@ socket_getclient(void)
|
||||||
if(csfd < 0)
|
if(csfd < 0)
|
||||||
warn("error opening UNIX domain socket: %s", strerror(errno));
|
warn("error opening UNIX domain socket: %s", strerror(errno));
|
||||||
|
|
||||||
|
fd_set_close_on_exec(csfd);
|
||||||
|
|
||||||
return csfd;
|
return csfd;
|
||||||
}
|
}
|
||||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue