Make sure to only close fishd socket if it is open on shutdown

darcs-hash:20060718172756-ac50b-3f36ee03489427823a36161b920b280b3494c1fa.gz
This commit is contained in:
axel 2006-07-19 03:27:56 +10:00
parent fd4e5e6777
commit a09abea737

View file

@ -256,11 +256,11 @@ void env_universal_destroy()
wperror( L"fcntl" );
}
try_send_all( &env_universal_server );
}
if( close( env_universal_server.fd ) )
{
wperror( L"close" );
if( close( env_universal_server.fd ) )
{
wperror( L"close" );
}
}
env_universal_server.fd =-1;