Browse Source
New options to customize behavior on signals received, with the default
behavior:
- weechat.signal.sighup: quit in normal mode, reload config in headless
- weechat.signal.sigquit: quit
- weechat.signal.sigterm: quit
- weechat.signal.sigusr1: no command executed by default
- weechat.signal.sigusr2: no command executed by default
The signals SIGUSR1 and SIGUSR2 are introduced by this commit, so it's now
possible to run commands when they are received.
The SIGHUP signal makes now WeeChat quit, it was the behavior before version
2.9 of WeeChat (see commit de1e61f7cd
).
master

53 changed files with 988 additions and 441 deletions
@ -0,0 +1,314 @@
@@ -0,0 +1,314 @@
|
||||
/*
|
||||
* wee-signal.c - signal functions |
||||
* |
||||
* Copyright (C) 2021 Sébastien Helleu <flashcode@flashtux.org> |
||||
* |
||||
* This file is part of WeeChat, the extensible chat client. |
||||
* |
||||
* WeeChat is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation; either version 3 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* WeeChat is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
||||