Skip to content

Commit

Permalink
main: handle also SIGPIPE
Browse files Browse the repository at this point in the history
SIGPIPE signals may be delivered externally if user uses a named pipe
eg. as file capture input or file display output. We want to exit
gracefully in this case.
  • Loading branch information
MartinPulec committed Sep 1, 2023
1 parent 00ddaec commit 9e80a01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,7 @@ int main(int argc, char *argv[])
signal(SIGTERM, signal_handler);
#ifndef WIN32
signal(SIGHUP, signal_handler);
signal(SIGPIPE, signal_handler);
#endif

#ifdef USE_RT
Expand Down

0 comments on commit 9e80a01

Please sign in to comment.