diff options
author | Gerald Carter <jerry@samba.org> | 2003-01-15 18:57:41 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-01-15 18:57:41 +0000 |
commit | 99cdb462083381c88689a4e698ca48b6ed4cf5ac (patch) | |
tree | 7ea530c74c8fd1ef65eec52410b7843e63d89f8f /source3/client/smbmount.c | |
parent | 35fa2e5975f9b380e6e63471413df6f4182c164b (diff) | |
download | samba-99cdb462083381c88689a4e698ca48b6ed4cf5ac.tar.gz samba-99cdb462083381c88689a4e698ca48b6ed4cf5ac.tar.bz2 samba-99cdb462083381c88689a4e698ca48b6ed4cf5ac.zip |
*lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
(This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)
Diffstat (limited to 'source3/client/smbmount.c')
-rw-r--r-- | source3/client/smbmount.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c index 33adfc4d48..54970f7030 100644 --- a/source3/client/smbmount.c +++ b/source3/client/smbmount.c @@ -78,8 +78,12 @@ static void daemonize(void) } break; } + /* If we get here - the child exited with some error status */ - exit(status); + if (WIFSIGNALLED(status)) + exit(128 + WTERMSIG(status)); + else + exit(WEXITSTATUS(status)); } signal( SIGTERM, SIG_DFL ); |