git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38b5a21
)
waitstatus audit: Correctly handle case where smbmnt is killed by a
author
Martin Pool
<mbp@samba.org>
Thu, 13 Feb 2003 04:45:40 +0000
(
04:45
+0000)
committer
Martin Pool
<mbp@samba.org>
Thu, 13 Feb 2003 04:45:40 +0000
(
04:45
+0000)
signal. Previously this was incorrectly treated as success.
source/client/smbmount.c
patch
|
blob
|
history
diff --git
a/source/client/smbmount.c
b/source/client/smbmount.c
index 5d1dc64884570c2d781c1cafc2bbb5b5f587bf22..b9d8e7be616badaa43416930f8275c216ed41037 100644
(file)
--- a/
source/client/smbmount.c
+++ b/
source/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