diff options
author | Martin Pool <mbp@samba.org> | 2003-02-13 04:45:40 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2003-02-13 04:45:40 +0000 |
commit | 404a3f34c879f21bfef66f971d4ccb4c20e87f8e (patch) | |
tree | a1c3c2bdd6e4b1d86ed391e1ae48816cdae73441 /source3/client | |
parent | 11f07557bf42d33c1da94a2b8a1a8c07682c3054 (diff) | |
download | samba-404a3f34c879f21bfef66f971d4ccb4c20e87f8e.tar.gz samba-404a3f34c879f21bfef66f971d4ccb4c20e87f8e.tar.xz samba-404a3f34c879f21bfef66f971d4ccb4c20e87f8e.zip |
waitstatus audit: Correctly handle case where smbmnt is killed by a
signal. Previously this was incorrectly treated as success.
(This used to be commit fe5582c1b2e1c6a6ed5e048dd169a1fcf908069c)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/smbmount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c index 5d1dc648845..b9d8e7be616 100644 --- a/source3/client/smbmount.c +++ b/source3/client/smbmount.c @@ -507,6 +507,9 @@ static void init_mount(void) fprintf(stderr,"smbmnt failed: %d\n", WEXITSTATUS(status)); /* FIXME: do some proper error handling */ exit(1); + } else if (WIFSIGNALLED(status)) { + fprintf(stderr, "smbmnt killed by signal %d\n", WTERMSIG(status)); + exit(1); } /* Ok... This is the rubicon for that mount point... At any point |