1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-07-31 21:59:25 -04:00

Replace signal by sigaction

This commit is contained in:
Dave Davenport 2015-02-19 13:22:10 +01:00
parent d9db18266c
commit da8902ac88
5 changed files with 16 additions and 12 deletions

View file

@ -2,6 +2,7 @@
Removed features: Removed features:
- Remove (broken) hmode - Remove (broken) hmode
- Old style key binding and mode launcher. - Old style key binding and mode launcher.
- Old TIMING code.
New features: New features:
- Word movement in entry box. (#126) - Word movement in entry box. (#126)
- PID file to avoid duplicate Rofi. - PID file to avoid duplicate Rofi.

View file

@ -1715,7 +1715,10 @@ int main ( int argc, char *argv[] )
} }
// Set up X interaction. // Set up X interaction.
signal ( SIGCHLD, catch_exit ); const struct sigaction sigchld_action = {
.sa_handler = catch_exit
};
sigaction ( SIGCHLD, &sigchld_action, NULL );
x11_setup ( display ); x11_setup ( display );