diff options
author | axel <axel@liljencrantz.se> | 2006-07-19 03:27:56 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-07-19 03:27:56 +1000 |
commit | a09abea7377999f7a88e97bd1d8a48117c5b776d (patch) | |
tree | dc7654eaa2e2ba762fb7f4cdbf3c39a51ae895d3 /env_universal.c | |
parent | fd4e5e6777703f99cfc3e5d8271e01e138c08084 (diff) |
Make sure to only close fishd socket if it is open on shutdown
darcs-hash:20060718172756-ac50b-3f36ee03489427823a36161b920b280b3494c1fa.gz
Diffstat (limited to 'env_universal.c')
-rw-r--r-- | env_universal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/env_universal.c b/env_universal.c index be6571b4..55f0b626 100644 --- a/env_universal.c +++ b/env_universal.c @@ -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; |