summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/msgexec.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-10-15 10:19:04 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:11:03 +0200
commit8baec33a32c22b01755b900f30d82e8a885f2cb4 (patch)
tree4aa6de655587446fe13fa7983e7631f1d448ea92 /gettext-tools/src/msgexec.c
parent8ee1e7c35a7586e56f49c09c35247e2bc686bc18 (diff)
downloadexternal_gettext-8baec33a32c22b01755b900f30d82e8a885f2cb4.zip
external_gettext-8baec33a32c22b01755b900f30d82e8a885f2cb4.tar.gz
external_gettext-8baec33a32c22b01755b900f30d82e8a885f2cb4.tar.bz2
Kill subprocesses when the main process exits due to SIGHUP or SIGTERM
or similar.
Diffstat (limited to 'gettext-tools/src/msgexec.c')
-rw-r--r--gettext-tools/src/msgexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gettext-tools/src/msgexec.c b/gettext-tools/src/msgexec.c
index 01f1066..3d2f344 100644
--- a/gettext-tools/src/msgexec.c
+++ b/gettext-tools/src/msgexec.c
@@ -330,7 +330,7 @@ process_string (const message_ty *mp, const char *str, size_t len)
/* Open a pipe to a subprocess. */
child = create_pipe_out (sub_name, sub_path, sub_argv, NULL, false, true,
- fd);
+ true, fd);
if (full_write (fd[0], str, len) < len)
error (EXIT_FAILURE, errno,
@@ -339,7 +339,7 @@ process_string (const message_ty *mp, const char *str, size_t len)
close (fd[0]);
/* Remove zombie process from process list, and retrieve exit status. */
- exitstatus = wait_subprocess (child, sub_name, false, true);
+ exitstatus = wait_subprocess (child, sub_name, false, true, true);
if (exitcode < exitstatus)
exitcode = exitstatus;
}