2 * ion/utils/ion-statusd/exec.c
4 * Copyright (c) Tuomo Valkonen 2005-2009.
6 * See the included file LICENSE for details.
10 #include <libmainloop/select.h>
11 #include <libmainloop/exec.h>
15 * Run \var{cmd} in the background.
19 int statusd_exec(const char *cmd
)
21 return mainloop_spawn(cmd
);
26 * Run \var{cmd} with a read pipe connected to its stdout.
27 * When data is received through the pipe, \var{h} is called
32 int statusd_popen_bgread(const char *cmd
, ExtlFn h
, ExtlFn errh
)
34 return mainloop_popen_bgread(cmd
, NULL
, NULL
, h
, errh
);