summaryrefslogtreecommitdiff
path: root/src/plugins/ruby/weechat-ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/ruby/weechat-ruby.c')
-rw-r--r--src/plugins/ruby/weechat-ruby.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c
index a629437c9..09be2f202 100644
--- a/src/plugins/ruby/weechat-ruby.c
+++ b/src/plugins/ruby/weechat-ruby.c
@@ -30,6 +30,7 @@
#include <ruby/version.h>
#endif
+#include <signal.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -1440,6 +1441,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
ruby_quiet = 0;
ruby_cleanup (0);
+ signal (SIGCHLD, SIG_DFL);
/* free some data */
if (ruby_action_install_list)