diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-10-24 00:45:57 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-10-24 00:45:57 +0000 |
commit | d4b58c71a21b1f380612eb0e45b312e4c91e2a95 (patch) | |
tree | 3250dd46942f127d5faf97e8a5bfc196f54a6dbc /server.c | |
parent | 5fb4f8c1fa3e2a21be846f4fe13c4f6919ff54b2 (diff) | |
download | rtmux-d4b58c71a21b1f380612eb0e45b312e4c91e2a95.tar.gz rtmux-d4b58c71a21b1f380612eb0e45b312e4c91e2a95.tar.bz2 rtmux-d4b58c71a21b1f380612eb0e45b312e4c91e2a95.zip |
Sync OpenBSD patchset 775:
Trying to set FD_CLOEXEC on every fd is a lost cause, just use
closefrom() before exec.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.245 2010-10-09 14:29:32 tcunha Exp $ */ +/* $Id: server.c,v 1.246 2010-10-24 00:45:57 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -97,8 +97,6 @@ server_create_socket(void) 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"); server_update_socket(); |