X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fprocess%2Fprocess.h;h=f75f1976c718df3970930c88be9bf1de2bde299f;hb=37bff93c8b0a71432613f41f2319dc073ca64619;hp=ae7fe32d06350679660ac21473b8cd45fa6fc986;hpb=33527e065d9506e05f61c020a473544123c0601b;p=petitboot diff --git a/lib/process/process.h b/lib/process/process.h index ae7fe32..f75f197 100644 --- a/lib/process/process.h +++ b/lib/process/process.h @@ -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 */