[PATCH v3 26/27] watch: Use bb_system instead of system

Nadav Tasher tashernadav at gmail.com
Mon Jan 27 00:04:37 UTC 2025


Allows for execution of the internal shell when the
FEATURE_PREFER_APPLETS config option is enabled.

Signed-off-by: Nadav Tasher <tashernadav at gmail.com>
---
 procps/watch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/procps/watch.c b/procps/watch.c
index 05b72723c..00f3158b7 100644
--- a/procps/watch.c
+++ b/procps/watch.c
@@ -112,7 +112,7 @@ int watch_main(int argc UNUSED_PARAM, char **argv)
 		// TODO: 'real' watch pipes cmd's output to itself
 		// and does not allow it to overflow the screen
 		// (taking into account linewrap!)
-		system(cmd);
+		bb_system(cmd);
 		sleep_for_duration(period);
 	}
 	return 0; // gcc thinks we can reach this :)
-- 
2.43.0



More information about the busybox mailing list