summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer-network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/xfer/xfer-network.c')
-rw-r--r--src/plugins/xfer/xfer-network.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/xfer/xfer-network.c b/src/plugins/xfer/xfer-network.c
index 8f7609bb3..3c7b63338 100644
--- a/src/plugins/xfer/xfer-network.c
+++ b/src/plugins/xfer/xfer-network.c
@@ -483,7 +483,8 @@ xfer_network_child_kill (struct t_xfer *xfer)
if (xfer->child_pid > 0)
{
kill (xfer->child_pid, SIGKILL);
- waitpid (xfer->child_pid, NULL, 0);
+ weechat_command (weechat_buffer_search_main (),
+ "/mute /wait 100ms /sys waitpid");
xfer->child_pid = 0;
}