agree: change dwm-autodarkmode signal to USR1 and leave restarsig signal to HUP

This commit is contained in:
lupan committed 2026-07-18 23:50:05 +02:00
1 parent e401821c15
commit dbaf66abb3
1 file changed
+2 -2
+2 -2
View File
@@ -1742,10 +1742,10 @@ setup(void)
sa.sa_handler = SIG_IGN; sa.sa_handler = SIG_IGN;
sigaction(SIGCHLD, &sa, NULL); sigaction(SIGCHLD, &sa, NULL);
/* set color mode on SIGHUP */ /* set color mode on SIGUSR1 */
sigemptyset(&sa.sa_mask); sigemptyset(&sa.sa_mask);
sa.sa_handler = colormodehandler; sa.sa_handler = colormodehandler;
sigaction(SIGHUP, &sa, NULL); sigaction(SIGUSR1, &sa, NULL);
/* clean up any zombies (inherited from .xinitrc etc) immediately */ /* clean up any zombies (inherited from .xinitrc etc) immediately */
while (waitpid(-1, NULL, WNOHANG) > 0); while (waitpid(-1, NULL, WNOHANG) > 0);