FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 03-22-2011, 06:18 PM
David Lehman
 
Default shutdown.c: pidof and killall5 are in /sbin on rawhide.

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 = '';
> 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,"
")] = '';
> @@ -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
");
>
> 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
");


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:49 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org