Loading toolbox/Android.mk +0 −1 Original line number Original line Diff line number Diff line Loading @@ -142,7 +142,6 @@ OUR_TOOLS := \ nandread \ nandread \ netstat \ netstat \ newfs_msdos \ newfs_msdos \ nohup \ notify \ notify \ ps \ ps \ readlink \ readlink \ Loading toolbox/nohup.cdeleted 100644 → 0 +0 −26 Original line number Original line Diff line number Diff line #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; } Loading
toolbox/Android.mk +0 −1 Original line number Original line Diff line number Diff line Loading @@ -142,7 +142,6 @@ OUR_TOOLS := \ nandread \ nandread \ netstat \ netstat \ newfs_msdos \ newfs_msdos \ nohup \ notify \ notify \ ps \ ps \ readlink \ readlink \ Loading
toolbox/nohup.cdeleted 100644 → 0 +0 −26 Original line number Original line Diff line number Diff line #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; }