X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fprocess%2Fprocess.h;h=4904ffc8f5126977f1407bcb8d08703ea5b57037;hp=65fdba8d537beeb9e43efe9d3f3b08429d143530;hb=7aa2d8a3aefc31c4503d8d9e361c791179894b34;hpb=0ba871a497f156dd474a333889cd92eaab9b08dc;ds=sidebyside diff --git a/lib/process/process.h b/lib/process/process.h index 65fdba8..4904ffc 100644 --- a/lib/process/process.h +++ b/lib/process/process.h @@ -33,6 +33,7 @@ struct process { const char **argv; bool keep_stdout; bool add_stderr; + bool raw_stdout; process_exit_cb exit_cb; void *data; waiter_cb stdout_cb; @@ -45,6 +46,7 @@ struct process { /* post-execution information */ int exit_status; + bool cancelled; }; /* Process management system init. process_init must be called before @@ -77,6 +79,7 @@ int process_run_simple(void *ctx, const char *name, ...) int process_run_async(struct process *process); void process_stop_async(struct process *process); +void process_stop_async_all(void); /* helper function to determine if a process exited cleanly, with a non-zero * exit status */