]> sourceware.org Git - systemtap.git/commitdiff
PR13142: Stopping script execution on Android (ARM) does not unload kernel module
authorFrederic Turgis <f-turgis@ti.com>
Tue, 30 Aug 2011 21:22:23 +0000 (23:22 +0200)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 30 Aug 2011 18:58:54 +0000 (14:58 -0400)
runtime/staprun/mainloop.c

index 7994fb319d7bf5abefa64b9126e91fc54a95bacd..b91f571ad3e37ed1d9bc357baa5103200693d0d0 100644 (file)
@@ -316,7 +316,7 @@ void system_cmd(char *cmd)
   if ((pid = fork()) < 0) {
     _perr("fork");
   } else if (pid == 0) {
-    if (execl("/bin/sh", "sh", "-c", cmd, NULL) < 0)
+    if (execlp("sh", "sh", "-c", cmd, NULL) < 0)
       perr("%s", cmd);
     _exit(1);
   }
@@ -505,7 +505,7 @@ void cleanup_and_exit(int detach, int rc)
                             (verbose >= 2) ? "-v" : "",
                             modname);
           if (rc >= 1) {
-                  execl("/bin/sh", "sh", "-c", cmd, NULL);
+                  execlp("sh", "sh", "-c", cmd, NULL);
                   /* should not return */
                   perror(staprun);
                   _exit(-1);
This page took 0.025334 seconds and 5 git commands to generate.