diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-22 17:19:26 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-22 17:19:26 +0100 |
commit | d2277e262ff7dd2dd946ea16b93462f3dcdf0447 (patch) | |
tree | 985e045011ef9eb5b0136ce36c321cce015e56d7 /include/libbb.h | |
parent | fcb9e07eca65b98093dd0b2b80451934a8719914 (diff) | |
download | busybox-w32-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.tar.gz busybox-w32-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.tar.bz2 busybox-w32-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.zip |
nommu: fix cases where we mangle argv[0][0]
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 3f6fe47ed..bc9b7b06d 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -981,6 +981,9 @@ enum { | |||
981 | # define bb_daemonize(flags) bb_daemonize_or_rexec(flags, bogus) | 981 | # define bb_daemonize(flags) bb_daemonize_or_rexec(flags, bogus) |
982 | #else | 982 | #else |
983 | extern bool re_execed; | 983 | extern bool re_execed; |
984 | /* Note: re_exec() and fork_or_rexec() do argv[0][0] |= 0x80 on NOMMU! | ||
985 | * _Parent_ needs to undo it if it doesn't want to have argv[0] mangled. | ||
986 | */ | ||
984 | void re_exec(char **argv) NORETURN FAST_FUNC; | 987 | void re_exec(char **argv) NORETURN FAST_FUNC; |
985 | pid_t fork_or_rexec(char **argv) FAST_FUNC; | 988 | pid_t fork_or_rexec(char **argv) FAST_FUNC; |
986 | int BUG_fork_is_unavailable_on_nommu(void) FAST_FUNC; | 989 | int BUG_fork_is_unavailable_on_nommu(void) FAST_FUNC; |