[BusyBox] Re: Killall fix
Erik Andersen
andersen at lineo.com
Thu Jun 1 23:59:20 UTC 2000
On Wed May 31, 2000 at 07:12:18PM -0400, Pavel Roskin wrote:
> Hello, Erik!
>
> This patch makes "killall" complain about processes that it cannot
> find by name. It is not a fatal error, just like the "normal" killall.
>
> =====================
> diff -u -r1.3 kill.c
> --- kill.c 2000/05/17 20:57:41 1.3
> +++ kill.c 2000/05/31 23:07:57
> @@ -234,6 +234,9 @@
> pid_t* pidList;
>
> pidList = findPidByName( *argv);
> + if (!pidList)
> + errorMsg( "%s: no process killed\n", *argv);
> +
> for(; pidList && *pidList!=0; pidList++) {
> if (*pidList==myPid)
> continue;
> =====================
>
> Regards,
> Pavel Roskin
Applied.
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list