aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-vt.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-vt.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 '')
-rw-r--r--src/mds-vt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mds-vt.c b/src/mds-vt.c
index 2449aba..0264904 100644
--- a/src/mds-vt.c
+++ b/src/mds-vt.c
@@ -716,8 +716,10 @@ void signal_all(int signo)
*/
void received_switch_vt(int signo)
{
+ SIGHANDLER_START;
int leaving = signo == (SIGRTMIN + 2);
switching_vt = leaving ? 1 : -1;
+ SIGHANDLER_END;
}
@@ -881,6 +883,7 @@ void vt_construct_mode(int vt_switch_control, int vt_leave_signal,
*/
void received_info(int signo)
{
+ SIGHANDLER_START;
(void) signo;
iprintf("next message ID: %" PRIu32, message_id);
iprintf("connected: %s", connected ? "yes" : "no");
@@ -896,5 +899,6 @@ void received_info(int signo)
iprintf("secondary thread started: %s", secondary_thread_started ? "yes" : "no");
iprintf("secondary thread failed: %s", secondary_thread_failed ? "yes" : "no");
iprintf("non-exclusive counter: %zi", nonexclusive_counter);
+ SIGHANDLER_END;
}