diff options
author | Elliott Hughes <enh@google.com> | 2014-11-26 02:03:41 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-26 02:03:41 +0000 |
commit | a7ec5f1067d640be206bf597a67c64750b8a1fef (patch) | |
tree | 8819c1e427c8260eb3f135801df99d85d5311069 /toolbox | |
parent | bbd3b7edd7d2871e2327250219bb70e7c653e63d (diff) | |
parent | 50ac7725a5f1c195989888277341f22ab54f979b (diff) | |
download | system_core-a7ec5f1067d640be206bf597a67c64750b8a1fef.zip system_core-a7ec5f1067d640be206bf597a67c64750b8a1fef.tar.gz system_core-a7ec5f1067d640be206bf597a67c64750b8a1fef.tar.bz2 |
am 50ac7725: Merge "Lose nohup to toybox."
* commit '50ac7725a5f1c195989888277341f22ab54f979b':
Lose nohup to toybox.
Diffstat (limited to 'toolbox')
-rw-r--r-- | toolbox/Android.mk | 1 | ||||
-rw-r--r-- | toolbox/nohup.c | 26 |
2 files changed, 0 insertions, 27 deletions
diff --git a/toolbox/Android.mk b/toolbox/Android.mk index d14bc79..5bfa7ee 100644 --- a/toolbox/Android.mk +++ b/toolbox/Android.mk @@ -142,7 +142,6 @@ OUR_TOOLS := \ nandread \ netstat \ newfs_msdos \ - nohup \ notify \ ps \ prlimit \ diff --git a/toolbox/nohup.c b/toolbox/nohup.c deleted file mode 100644 index 363999d..0000000 --- a/toolbox/nohup.c +++ /dev/null @@ -1,26 +0,0 @@ -#include <signal.h> -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> - -int nohup_main(int argc, char *argv[]) -{ - if (argc < 2) { - fprintf(stderr, "Usage: %s [-n] program args...\n", argv[0]); - return EXIT_FAILURE; - } - signal(SIGHUP, SIG_IGN); - argv++; - if (strcmp(argv[0], "-n") == 0) { - argv++; - signal(SIGINT, SIG_IGN); - signal(SIGSTOP, SIG_IGN); - signal(SIGTTIN, SIG_IGN); - signal(SIGTTOU, SIG_IGN); - signal(SIGQUIT, SIG_IGN); - signal(SIGTERM, SIG_IGN); - } - execvp(argv[0], argv); - perror(argv[0]); - return EXIT_FAILURE; -} |