aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-03-16 05:20:44 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2021-05-11 04:11:14 -0400
commitd3e6dd2fe73e2c91a5e9803f3d5a93a82fe829ae (patch)
tree604943deaea410956945d91dff6207351e61c96c /include
parent68746930ae591eca3d6dd490012b59e85194ede4 (diff)
downloadqemu-d3e6dd2fe73e2c91a5e9803f3d5a93a82fe829ae.zip
qemu-d3e6dd2fe73e2c91a5e9803f3d5a93a82fe829ae.tar.gz
qemu-d3e6dd2fe73e2c91a5e9803f3d5a93a82fe829ae.tar.bz2
main-loop: remove dead code
qemu_add_child_watch is not called anywhere since commit 2bdb920ece ("slirp: simplify fork_exec()", 2019-01-14), remove it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/main-loop.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/qemu/main-loop.h b/include/qemu/main-loop.h
index d6892fd..98aef56 100644
--- a/include/qemu/main-loop.h
+++ b/include/qemu/main-loop.h
@@ -234,24 +234,6 @@ void event_notifier_set_handler(EventNotifier *e,
GSource *iohandler_get_g_source(void);
AioContext *iohandler_get_aio_context(void);
-#ifdef CONFIG_POSIX
-/**
- * qemu_add_child_watch: Register a child process for reaping.
- *
- * Under POSIX systems, a parent process must read the exit status of
- * its child processes using waitpid, or the operating system will not
- * free some of the resources attached to that process.
- *
- * This function directs the QEMU main loop to observe a child process
- * and call waitpid as soon as it exits; the watch is then removed
- * automatically. It is useful whenever QEMU forks a child process
- * but will find out about its termination by other means such as a
- * "broken pipe".
- *
- * @pid: The pid that QEMU should observe.
- */
-int qemu_add_child_watch(pid_t pid);
-#endif
/**
* qemu_mutex_iothread_locked: Return lock status of the main loop mutex.