From 8c06a59a34b5d9bba277a50198fe2dd50d832da3 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 5 Mar 2016 13:13:47 +0100 Subject: Quit upon reception of two SIGINT If player is running one SIGINT restarts current track request, two SIGINT (or more) quit pianobar. Idle main loop (i.e. no player or submenu) quits on SIGINT. Fixes issue #564. --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index d1e71ec..0dd2647 100644 --- a/src/main.h +++ b/src/main.h @@ -40,7 +40,7 @@ typedef struct { PianoSong_t *playlist; PianoSong_t *songHistory; PianoStation_t *curStation; - char doQuit; + sig_atomic_t doQuit; BarReadlineFds_t input; unsigned int playerErrors; } BarApp_t; -- cgit v1.2.3