core: add nm_utils_kill_process_sync() function

This utility function is for killing other processes.
Contrary to nm_utils_kill_child_*() which is for killing
and reaping child processes.

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller
2014-10-01 16:15:52 +02:00
parent 99c5edbacd
commit efd8be04f1
2 changed files with 145 additions and 2 deletions

View File

@@ -65,6 +65,10 @@ str_if_set (const char *str, const char *fallback)
guint64 nm_utils_get_start_time_for_pid (pid_t pid);
void nm_utils_kill_process_sync (pid_t pid, guint64 start_time, int sig, guint64 log_domain,
const char *log_name, guint32 wait_before_kill_msec,
guint32 sleep_duration_msec);
typedef void (*NMUtilsKillChildAsyncCb) (pid_t pid, gboolean success, int child_status, void *user_data);
void nm_utils_kill_child_async (pid_t pid, int sig, guint64 log_domain, const char *log_name,
guint32 wait_before_kill_msec,