[master 1/3] shutdown.c: pidof and killall5 are in /sbin on rawhide.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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");
-- 
1.7.3.3

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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux