aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-respawn.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-23 03:30:46 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-23 03:30:46 +0200
commit3d652087604ca1c6a66d9fa319645aeec1cf1b7b (patch)
tree0c54c322b6f053bdb4e898b6683c8190922f3539 /src/mds-respawn.c
parentm + colour on selected items in lists and tables (diff)
downloadmds-3d652087604ca1c6a66d9fa319645aeec1cf1b7b.tar.gz
mds-3d652087604ca1c6a66d9fa319645aeec1cf1b7b.tar.bz2
mds-3d652087604ca1c6a66d9fa319645aeec1cf1b7b.tar.xz
signal handlers that return should not modify errno
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-respawn.c')
-rw-r--r--src/mds-respawn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mds-respawn.c b/src/mds-respawn.c
index 785eb67..0b68d08 100644
--- a/src/mds-respawn.c
+++ b/src/mds-respawn.c
@@ -225,9 +225,11 @@ static void spawn_server(size_t index)
*/
static void received_revive(int signo)
{
+ SIGHANDLER_START;
(void) signo;
reviving = 1;
eprint("revive signal received.");
+ SIGHANDLER_END;
}
@@ -545,6 +547,7 @@ int master_loop(void)
*/
void received_info(int signo)
{
+ SIGHANDLER_START;
server_state_t state;
size_t i, n = servers;
char** cmdline;
@@ -577,5 +580,6 @@ void received_info(int signo)
while (*cmdline)
iprintf(" %z", *cmdline++);
}
+ SIGHANDLER_END;
}