From 3d652087604ca1c6a66d9fa319645aeec1cf1b7b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Aug 2015 03:30:46 +0200 Subject: signal handlers that return should not modify errno MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-vt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mds-vt.c') 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; } -- cgit v1.2.3-70-g09d2