with traditional implementations -- Pavel Roskin.
* "mount" now reports errors from nfsmount() and assumes NFS mount
if ':' is present in the device name - Pavel Roskin
+ * Fixed exit status for killall - Pavel Roskin
* More doc updates
}
#ifdef BB_KILLALL
else {
+ int all_found = TRUE;
pid_t myPid=getpid();
/* Looks like they want to do a killall. Do that */
while (--argc >= 0) {
pid_t* pidList;
pidList = findPidByName( *argv);
- if (!pidList)
+ if (!pidList) {
+ all_found = FALSE;
errorMsg( "%s: no process killed\n", *argv);
+ }
for(; pidList && *pidList!=0; pidList++) {
if (*pidList==myPid)
* upon exit, so we can save a byte or two */
argv++;
}
+ exit (all_found);
}
#endif
}
#ifdef BB_KILLALL
else {
+ int all_found = TRUE;
pid_t myPid=getpid();
/* Looks like they want to do a killall. Do that */
while (--argc >= 0) {
pid_t* pidList;
pidList = findPidByName( *argv);
- if (!pidList)
+ if (!pidList) {
+ all_found = FALSE;
errorMsg( "%s: no process killed\n", *argv);
+ }
for(; pidList && *pidList!=0; pidList++) {
if (*pidList==myPid)
* upon exit, so we can save a byte or two */
argv++;
}
+ exit (all_found);
}
#endif