summaryrefslogtreecommitdiff
path: root/procps/fuser.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-23 01:06:21 +0000
committerDenis Vlasenko2006-12-23 01:06:21 +0000
commit2a813e20e2a8720160a059a036cb6c066044f709 (patch)
tree607468384b6707c7b60505da37d2aefc49d355cf /procps/fuser.c
parent8f6c79240dc7c1e0b819a1a1309240477d8e0d84 (diff)
downloadbusybox-2a813e20e2a8720160a059a036cb6c066044f709.zip
busybox-2a813e20e2a8720160a059a036cb6c066044f709.tar.gz
fix recognitions of -SIGname signals
(fix by Jacques LUDER <jacques.luder@thalesgroup.com>)
Diffstat (limited to 'procps/fuser.c')
-rw-r--r--procps/fuser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/fuser.c b/procps/fuser.c
index 4628cdf..a216eae 100644
--- a/procps/fuser.c
+++ b/procps/fuser.c
@@ -323,7 +323,8 @@ int fuser_main(int argc, char **argv)
optn = fuser_option(argv[i]);
if(optn) opt |= optn;
else if(argv[i][0] == '-') {
- if(0>(killsig = get_signum(argv[i]+1)))
+ killsig = get_signum(argv[i]+1);
+ if(0 > killsig)
killsig = SIGTERM;
}
else {