[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [master 1/3] shutdown.c: pidof and killall5 are in /sbin on rawhide.
- From: David Lehman <dlehman redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [master 1/3] shutdown.c: pidof and killall5 are in /sbin on rawhide.
- Date: Tue, 22 Mar 2011 14:18:26 -0500
Ack to all three.
On Tue, 2011-03-22 at 18:42 +0100, Ales Kozumplik wrote:
> Without this the termination procedure just prints errors about how it can
> not find the binaries.
> ---
> loader/shutdown.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/loader/shutdown.c b/loader/shutdown.c
> index f03b367..bb32359 100644
> --- a/loader/shutdown.c
> +++ b/loader/shutdown.c
> @@ -46,7 +46,7 @@ static void performTerminations(void) {
> /* find some pids so we can omit them from killall5 */
> *omit = '\0';
> for (procname=donotkill; *procname; procname++) {
> - sprintf(buf, "/usr/sbin/pidof %s", *procname);
> + sprintf(buf, "/sbin/pidof %s", *procname);
> if ((f = popen(buf, "r")) != NULL) {
> if (fgets(buf, sizeof(buf), f) != NULL) {
> buf[strcspn(buf,"\n")] = '\0';
> @@ -64,13 +64,13 @@ static void performTerminations(void) {
>
> sync();
> printf("sending termination signals...");
> - sprintf(buf, "/usr/sbin/killall5 -15%s", omit);
> + sprintf(buf, "/sbin/killall5 -15%s", omit);
> system(buf);
> sleep(2);
> printf("done\n");
>
> printf("sending kill signals...");
> - sprintf(buf, "/usr/sbin/killall5 -9%s", omit);
> + sprintf(buf, "/sbin/killall5 -9%s", omit);
> system(buf);
> sleep(2);
> printf("done\n");
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]