lib/process: Add helper for check process clean exit
[petitboot] / lib / process / process.h
index ae7fe32d06350679660ac21473b8cd45fa6fc986..f75f1976c718df3970930c88be9bf1de2bde299f 100644 (file)
@@ -74,4 +74,9 @@ int process_run_simple(void *ctx, const char *name, ...)
 int process_run_async(struct process *process);
 
 void process_stop_async(struct process *process);
+
+/* helper function to determine if a process exited cleanly, with a non-zero
+ * exit status */
+bool process_exit_ok(struct process *process);
+
 #endif /* PROCESS_H */