Skip to content

Commit

Permalink
ignore real-time signals by default, unless explicitly set
Browse files Browse the repository at this point in the history
  • Loading branch information
noocsharp committed Feb 19, 2021
1 parent 747067e commit 9cd6f02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dwmblocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ void getsigcmds(int signal)
void setupsignals()
{
struct sigaction sa;

for(int i = SIGRTMIN; i <= SIGRTMAX; i++)
signal(i, SIG_IGN);

for(int i = 0; i < LENGTH(blocks); i++)
{
if (blocks[i].signal > 0)
Expand Down

0 comments on commit 9cd6f02

Please sign in to comment.