4 * Created on: Sep 18, 2010
11 #include <sys/types.h>
18 #include "process_listener.h"
20 static pthread_t _listener_thread;
21 static bool _continue;
23 static void *process_listener_thread(void *thread_args_pointer)
29 closed_pid = wait(&status);
30 if (closed_pid >= 0) {
31 log_info("process closed: %d, status: %d\n", closed_pid, status);
37 void start_process_listener() {
38 log_debug("start_process_listener()\n");
42 pthread_create(&_listener_thread,
44 process_listener_thread,
48 void stop_process_listener() {
50 // pthread_cancel(_listener_thread);
51 // pthread_join(_listener_thread, NULL);