Don't reopen stdio. It's not needed, and it doesn't compile with Solaris.
Signed-off-by: Timo Sirainen <tss@iki.fi>
This commit is contained in:
committed by
Keith Winstein
parent
9cade23616
commit
9296ffbed7
@@ -422,11 +422,6 @@ int run_server( const char *desired_ip, const char *desired_port,
|
|||||||
if ( child == 0 ) {
|
if ( child == 0 ) {
|
||||||
/* child */
|
/* child */
|
||||||
|
|
||||||
/* reopen stdio */
|
|
||||||
stdin = fdopen( STDIN_FILENO, "r" );
|
|
||||||
stdout = fdopen( STDOUT_FILENO, "w" );
|
|
||||||
stderr = fdopen( STDERR_FILENO, "w" );
|
|
||||||
|
|
||||||
/* reenable signals */
|
/* reenable signals */
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
sa.sa_handler = SIG_DFL;
|
sa.sa_handler = SIG_DFL;
|
||||||
|
|||||||
Reference in New Issue
Block a user