aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-09 21:35:07 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-09 21:35:07 +0000
commitd380c416f4b6b1d9d3ca66df11fc69c85ecbee53 (patch)
treed5c648f583bb2edef25f05c2bed303df3d1a61f6 /libbb/xfuncs.c
parentdb15f9c96ab5d863a1304ae3a9be06b0bcad08be (diff)
downloadbusybox-w32-d380c416f4b6b1d9d3ca66df11fc69c85ecbee53.tar.gz
busybox-w32-d380c416f4b6b1d9d3ca66df11fc69c85ecbee53.tar.bz2
busybox-w32-d380c416f4b6b1d9d3ca66df11fc69c85ecbee53.zip
make xfunctions optionally longjump instead of exit.
use it for making NOFORK more practical. touch: make it a NOFORK applet git-svn-id: svn://busybox.net/trunk/busybox@18376 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--libbb/xfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 0cf2005ac..fa4a15236 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -476,7 +476,7 @@ void xprint_and_close_file(FILE *file)
476 fflush(stdout); 476 fflush(stdout);
477 // copyfd outputs error messages for us. 477 // copyfd outputs error messages for us.
478 if (bb_copyfd_eof(fileno(file), 1) == -1) 478 if (bb_copyfd_eof(fileno(file), 1) == -1)
479 exit(xfunc_error_retval); 479 sleep_and_die();
480 480
481 fclose(file); 481 fclose(file);
482} 482}