From 404a3f34c879f21bfef66f971d4ccb4c20e87f8e Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 13 Feb 2003 04:45:40 +0000 Subject: 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) --- source3/client/smbmount.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/client') diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c index 5d1dc64884..b9d8e7be61 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 -- cgit