i3 / i3

A tiling window manager for X11

Home Page:https://i3wm.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copy'n'Paste Error for SIGUSR1 and SIGUSR2 signal handler

werneazc opened this issue · comments

The main.c file uses 2 times the same signal for registering a signal handler. In my opinion, it seems like a copy-and-paste error and should be SIGUSR2 instead.

Locking into blame it seems that priviousely the SIGUSR2 was used as well.

i3/src/main.c

Line 254 in 910e585

ev_signal_init(&signal_watchers[4], handle_term_signal, SIGUSR1);

i3 version 4.23

Interesting 🤔. SIGUSR2 still kills i3 so the only difference is with the exit code that is set in the callback. PRs welcome.