1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05: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:
- Remove (broken) hmode
- Old style key binding and mode launcher.
- Old TIMING code.
New features:
- Word movement in entry box. (#126)
- PID file to avoid duplicate Rofi.

View file

@ -1715,7 +1715,10 @@ int main ( int argc, char *argv[] )
}
// 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 );