From 99cdb462083381c88689a4e698ca48b6ed4cf5ac Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 15 Jan 2003 18:57:41 +0000 Subject: *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) --- source3/client/smbmount.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/client') 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 ); -- cgit