diff options
author | Denys Vlasenko | 2017-08-08 14:09:23 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-08-08 14:09:23 +0200 |
commit | ddd1ee44436c2ec7e0125ca128c9a148bea8a2c0 (patch) | |
tree | 0f2e44e3cff4ac426b4be113c4bcb0cfe3acbebf /libbb/appletlib.c | |
parent | 8858a9864e1d56cfc121755d613d1292727d15f3 (diff) | |
download | busybox-ddd1ee44436c2ec7e0125ca128c9a148bea8a2c0.zip busybox-ddd1ee44436c2ec7e0125ca128c9a148bea8a2c0.tar.gz |
libbb: simplify NOFORK/NOEXEC defines, move set_task_comm to libbb
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 5b84920..cbca7ef 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -34,14 +34,6 @@ # include <malloc.h> /* for mallopt */ #endif -#include <sys/prctl.h> -#ifndef PR_SET_NAME -#define PR_SET_NAME 15 -#endif -#ifndef PR_GET_NAME -#define PR_GET_NAME 16 -#endif - /* Declare <applet>_main() */ #define PROTOTYPES #include "applets.h" @@ -911,14 +903,6 @@ int busybox_main(int argc UNUSED_PARAM, char **argv) } # endif -#if defined(__linux__) && (NUM_APPLETS > 1) -void FAST_FUNC set_task_comm(const char *comm) -{ - /* okay if too long (truncates) */ - prctl(PR_SET_NAME, (long)comm, 0, 0, 0); -} -#endif - # if NUM_APPLETS > 0 void FAST_FUNC run_applet_no_and_exit(int applet_no, const char *name, char **argv) { |