From 402f7e97d5adba6436985d249de17c1d77bec587 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 25 Nov 2014 16:58:53 -0800 Subject: [PATCH] Lose nohup to toybox. Change-Id: I2928534bc70c6c77cdc90b658029567f00e7f6ad --- toolbox/Android.mk | 1 - toolbox/nohup.c | 26 -------------------------- 2 files changed, 27 deletions(-) delete mode 100644 toolbox/nohup.c diff --git a/toolbox/Android.mk b/toolbox/Android.mk index bc15aa8e7..665d38149 100644 --- a/toolbox/Android.mk +++ b/toolbox/Android.mk @@ -142,7 +142,6 @@ OUR_TOOLS := \ nandread \ netstat \ newfs_msdos \ - nohup \ notify \ ps \ readlink \ diff --git a/toolbox/nohup.c b/toolbox/nohup.c deleted file mode 100644 index 363999d0b..000000000 --- a/toolbox/nohup.c +++ /dev/null @@ -1,26 +0,0 @@ -#include -#include -#include -#include - -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; -}