aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive/open_transformer.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libunarchive/open_transformer.c')
-rw-r--r--archival/libunarchive/open_transformer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/archival/libunarchive/open_transformer.c b/archival/libunarchive/open_transformer.c
index 3c551de06..8fb860234 100644
--- a/archival/libunarchive/open_transformer.c
+++ b/archival/libunarchive/open_transformer.c
@@ -22,11 +22,13 @@ int open_transformer(int src_fd,
22 22
23#if BB_MMU 23#if BB_MMU
24 pid = fork(); 24 pid = fork();
25 if (pid == -1)
26 bb_perror_msg_and_die("can't fork");
25#else 27#else
26 pid = vfork(); 28 pid = vfork();
27#endif
28 if (pid == -1) 29 if (pid == -1)
29 bb_perror_msg_and_die("fork failed"); 30 bb_perror_msg_and_die("can't vfork");
31#endif
30 32
31 if (pid == 0) { 33 if (pid == 0) {
32 /* child process */ 34 /* child process */
@@ -49,7 +51,7 @@ int open_transformer(int src_fd,
49 argv[2] = (char*)"-"; 51 argv[2] = (char*)"-";
50 argv[3] = NULL; 52 argv[3] = NULL;
51 BB_EXECVP(transform_prog, argv); 53 BB_EXECVP(transform_prog, argv);
52 bb_perror_msg_and_die("exec failed"); 54 bb_perror_msg_and_die("can't exec %s", transform_prog);
53 } 55 }
54#endif 56#endif
55 /* notreached */ 57 /* notreached */