summaryrefslogtreecommitdiffstats
path: root/libbb/unzip.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-16 21:10:45 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-16 21:10:45 (EST)
commit226a5653429e962b0100502936342149a9c7fae2 (patch)
treef9736973efef902419e874c44e458c690885bfb7 /libbb/unzip.c
parent7aeac5e4c5468c7b10e90eb70fcd520ebf8f510f (diff)
Call _exit() and not exit() from within the child process.
git-svn-id: http://opkg.googlecode.com/svn/trunk@325 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libbb/unzip.c')
-rw-r--r--libbb/unzip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbb/unzip.c b/libbb/unzip.c
index 058aa07..894b788 100644
--- a/libbb/unzip.c
+++ b/libbb/unzip.c
@@ -98,7 +98,7 @@ static const unsigned short mask_bits[] = {
static void abort_gzip()
{
error_msg("gzip aborted\n");
- exit(ERROR);
+ _exit(ERROR);
}
static void make_crc_table()
@@ -148,7 +148,8 @@ static void flush_window(void)
}
if (fwrite(window, 1, outcnt, out_file) != outcnt) {
- error_msg_and_die("Couldnt write");
+ error_msg("Couldnt write");
+ _exit(EXIT_FAILURE);
}
bytes_out += (unsigned long) outcnt;
outcnt = 0;