|
@@ -549,12 +549,16 @@ process_unix_waitpid_callback(int status, void *data)
|
|
|
process_t *process = data;
|
|
|
process_unix_t *unix_process = process_get_unix_process(process);
|
|
|
|
|
|
-
|
|
|
- process_notify_event_exit(process, status);
|
|
|
-
|
|
|
|
|
|
clear_waitpid_callback(unix_process->waitpid);
|
|
|
unix_process->waitpid = NULL;
|
|
|
+
|
|
|
+
|
|
|
+ process_notify_event_exit(process, status);
|
|
|
+
|
|
|
+
|
|
|
+ * process_notify_event_exit() on it, to allow users to process_free() it in
|
|
|
+ * the exit callback. */
|
|
|
}
|
|
|
|
|
|
|