mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
FD_CLOEXEC more fds. Still one I can't find...
This commit is contained in:
4
server.c
4
server.c
@ -1,4 +1,4 @@
|
||||
/* $Id: server.c,v 1.131 2009-03-28 15:49:05 nicm Exp $ */
|
||||
/* $Id: server.c,v 1.132 2009-03-31 22:20:42 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -73,6 +73,8 @@ server_create_client(int fd)
|
||||
fatal("fcntl failed");
|
||||
if (fcntl(fd, F_SETFL, mode|O_NONBLOCK) == -1)
|
||||
fatal("fcntl failed");
|
||||
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
|
||||
fatal("fcntl failed");
|
||||
|
||||
c = xcalloc(1, sizeof *c);
|
||||
c->fd = fd;
|
||||
|
Reference in New Issue
Block a user