NOMMU re-exec trick shuld not depend on existence of "don't daemonize"
option for every affected applet (and dnsd, for example, don't have one). Thus rework re-exec support to not require it. Code got smaller too.
This commit is contained in:
@@ -616,9 +616,7 @@ extern int index_in_substr_array(const char * const string_array[], const char *
|
||||
extern void print_login_issue(const char *issue_file, const char *tty);
|
||||
extern void print_login_prompt(void);
|
||||
#ifdef BB_NOMMU
|
||||
extern void vfork_daemon(int nochdir, int noclose);
|
||||
extern void vfork_daemon_rexec(int nochdir, int noclose,
|
||||
int argc, char **argv, char *foreground_opt);
|
||||
extern void vfork_daemon_rexec(int nochdir, int noclose, char **argv);
|
||||
#endif
|
||||
extern int get_terminal_width_height(const int fd, int *width, int *height);
|
||||
|
||||
@@ -763,6 +761,7 @@ enum { /* DO NOT CHANGE THESE VALUES! cp.c, mv.c, install.c depend on them. */
|
||||
};
|
||||
|
||||
#define FILEUTILS_CP_OPTSTR "pdRfils" USE_SELINUX("c")
|
||||
extern smallint re_execed;
|
||||
extern const char *applet_name;
|
||||
extern const char BB_BANNER[];
|
||||
|
||||
|
Reference in New Issue
Block a user