Commit 3b6a3e77 authored by Alexandre Julliard's avatar Alexandre Julliard

Set close-on-exec flag on server socket.

parent 19dc2087
......@@ -284,6 +284,7 @@ int CLIENT_InitServer(void)
exit(1);
case 0: /* child */
close( fd[1] );
fcntl( fd[0], F_SETFD, 1 ); /* set close on exec flag */
break;
default: /* parent */
close( fd[0] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment