From 7e0fbf9c26350a819661241bc925cb88f26bb992 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 4 Sep 2007 19:33:22 +0000 Subject: tar: conditionally don't wait for vforked child to exec, as it always works right on Linux, and anyway mayresult only on less-than-clear error message only, it will not cause tar to misbehave. function old new delta open_transformer 98 80 -18 writeTarFile 714 547 -167 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-185) Total: -185 bytes text data bss dec hex filename 770651 1051 10764 782466 bf082 busybox_old 770463 1051 10764 782278 befc6 busybox_unstripped --- include/libbb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 6c6b4863c..cf00b5250 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -512,6 +512,9 @@ int execable_file(const char *name); char *find_execable(const char *filename); int exists_execable(const char *filename); +/* BB_EXECxx always execs (it's not doing NOFORK/NOEXEC stuff), + * but it may exec busybox and call applet instead of searching PATH. + */ #if ENABLE_FEATURE_PREFER_APPLETS int bb_execvp(const char *file, char *const argv[]); #define BB_EXECVP(prog,cmd) bb_execvp(prog,cmd) -- cgit v1.2.3