summaryrefslogtreecommitdiffstats
path: root/gettext-tools/lib/execute.h
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/lib/execute.h
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/lib/execute.h')
-rw-r--r--gettext-tools/lib/execute.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gettext-tools/lib/execute.h b/gettext-tools/lib/execute.h
index 5915dc4..d0df8e4 100644
--- a/gettext-tools/lib/execute.h
+++ b/gettext-tools/lib/execute.h
@@ -1,5 +1,5 @@
/* Creation of autonomous subprocesses.
- Copyright (C) 2001-2002 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
@@ -24,10 +24,14 @@
/* Execute a command, optionally redirecting any of the three standard file
descriptors to /dev/null. Return its exit code.
If it didn't terminate correctly, exit if exit_on_error is true, otherwise
- return 127. */
+ return 127.
+ If slave_process is true, the child process will be terminated when its
+ creator receives a catchable fatal signal.
+ It is recommended that no signal is blocked or ignored while execute()
+ is called. See pipe.h for the reason. */
extern int execute (const char *progname,
const char *prog_path, char **prog_argv,
bool null_stdin, bool null_stdout, bool null_stderr,
- bool exit_on_error);
+ bool slave_process, bool exit_on_error);
#endif /* _EXECUTE_H */