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
|