diff options
author | Roy Marples <roy@marples.name> | 2008-02-17 15:12:00 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-02-17 15:12:00 +0000 |
commit | 27f97f210658ad566ca6428fecc0aa205b225421 (patch) | |
tree | e4df9636780f0b3dfb3bd2491ea63af10ce671d9 /src/librc/rc.h | |
parent | fbdc85f3b3abc06eda9fd4d2a1fd0fc754699d28 (diff) |
We need to be able to locate pids by argv, instead of just argv0.
Diffstat (limited to 'src/librc/rc.h')
-rw-r--r-- | src/librc/rc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librc/rc.h b/src/librc/rc.h index 726d7f98..1f1a9a76 100644 --- a/src/librc/rc.h +++ b/src/librc/rc.h @@ -117,7 +117,7 @@ bool rc_service_delete (const char *runlevel, const char *service); * @param name of the process (optional) * @param pidfile of the process (optional) * @param started if true, add the arguments otherwise remove existing matching arguments */ -bool rc_service_daemon_set (const char *service, const char *exec, +bool rc_service_daemon_set (const char *service, const char *const *argv, const char *name, const char *pidfile, bool started); @@ -445,7 +445,7 @@ char *rc_strcatpaths (const char *path1, const char *paths, ...) SENTINEL; * @param uid to check for * @param pid to check for * @return NULL terminated list of pids */ -pid_t *rc_find_pids (const char *exec, const char *cmd, +pid_t *rc_find_pids (const char *const *argv, const char *cmd, uid_t uid, pid_t pid); #endif |