Skip to content

Commit

Permalink
FvwmMFL: ignore SIGUSR2
Browse files Browse the repository at this point in the history
When fvwm receives SIGUSR2 it will toggle its logfile open/closed.
However, the signal is propagated to modules.  We want to ignore this
signal in FvwmMFL so that it doesn't quit.
  • Loading branch information
ThomasAdam committed Aug 27, 2024
1 parent c71b017 commit 917ba28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/FvwmMFL/FvwmMFL.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ setup_signal_handlers(struct event_base *base)
struct event *hup, *term, *intrp, *quit, *child;

signal(SIGPIPE, SIG_IGN);
signal(SIGUSR2, SIG_IGN);

hup = evsignal_new(base, SIGHUP, HandleTerminate, NULL);
term = evsignal_new(base, SIGTERM, HandleTerminate, NULL);
Expand Down

0 comments on commit 917ba28

Please sign in to comment.