From 594aac64fb94168c5345dd53a1e0231ed7c78418 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 22 Aug 2017 15:30:29 +0100 Subject: Revert "ash: allow long-running nofork applets to be interrupted" This reverts commit f5051d07f196a8ff7aeaae762333d5aa2b824088. Upstream made 'yes' and 'seq' NOEXEC rather than NOFORK which also solves the problem, though NOEXEC doesn't provide any gain in busybox-w32. --- libbb/appletlib.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'libbb') diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 6330b6f8b..71ee0dd07 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -302,22 +302,6 @@ int FAST_FUNC find_applet_by_name(const char *name) #endif } -# if ENABLE_PLATFORM_MINGW32 && ENABLE_FEATURE_SH_NOFORK -int FAST_FUNC long_running_applet(int applet_no) -{ - int ret = 0; - -#if defined(APPLET_NO_seq) - ret |= (applet_no == APPLET_NO_seq); -#endif -#if defined(APPLET_NO_yes) - ret |= (applet_no == APPLET_NO_yes); -#endif - - return ret; -} -#endif - void lbb_prepare(const char *applet IF_FEATURE_INDIVIDUAL(, char **argv)) -- cgit v1.2.3-55-g6feb