aboutsummaryrefslogtreecommitdiff
path: root/support/subprocess.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/subprocess.h')
-rw-r--r--support/subprocess.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/subprocess.h b/support/subprocess.h
index 8b442fd..34ffd02 100644
--- a/support/subprocess.h
+++ b/support/subprocess.h
@@ -38,6 +38,11 @@ struct support_subprocess support_subprocess
struct support_subprocess support_subprogram
(const char *file, char *const argv[]);
+/* Invoke program FILE with ARGV arguments by using posix_spawn and wait for it
+ to complete. Return program exit status. */
+int support_subprogram_wait
+ (const char *file, char *const argv[]);
+
/* Wait for the subprocess indicated by PROC::PID. Return the status
indicate by waitpid call. */
int support_process_wait (struct support_subprocess *proc);