projects
/
platform
/
upstream
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*: introduce and use xfork() and xvfork()
[platform/upstream/busybox.git]
/
miscutils
/
time.c
diff --git
a/miscutils/time.c
b/miscutils/time.c
index
5cfbcef
..
9facc36
100644
(file)
--- a/
miscutils/time.c
+++ b/
miscutils/time.c
@@
-372,9
+372,7
@@
static void run_command(char *const *cmd, resource_t *resp)
void (*quit_signal)(int);
resp->elapsed_ms = monotonic_ms();
- pid = vfork();
- if (pid < 0)
- bb_perror_msg_and_die("vfork");
+ pid = xvfork();
if (pid == 0) {
/* Child */
BB_EXECVP_or_die((char**)cmd);