summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Potter <agpotter@gmail.com>2023-04-25 11:27:29 -0700
committerSébastien Helleu <flashcode@flashtux.org>2023-04-26 00:07:54 +0200
commit71382b6c0fa1860f371349f6409f9bbd1ea3987a (patch)
tree89a4d8d86ce5d773da60806f0563d4aacecc95c7
parentac25043b272aa94c6c1498785fecb110f20e9fa4 (diff)
downloadweechat-71382b6c0fa1860f371349f6409f9bbd1ea3987a.zip
ruby: Restore default SIGCHLD signal handler on unload
fixes #1889
-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)