2 * ion/utils/ion-statusd/exec.c
4 * Copyright (c) Tuomo Valkonen 2005-2006.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
13 #include <libmainloop/select.h>
14 #include <libmainloop/exec.h>
18 * Run \var{cmd} in the background.
22 int statusd_exec(const char *cmd)
24 return mainloop_spawn(cmd);
29 * Run \var{cmd} with a read pipe connected to its stdout.
30 * When data is received through the pipe, \var{h} is called
35 int statusd_popen_bgread(const char *cmd, ExtlFn h, ExtlFn errh)
37 return mainloop_popen_bgread(cmd, NULL, NULL, h, errh);