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:
parent
d9db18266c
commit
da8902ac88
5 changed files with 16 additions and 12 deletions
|
@ -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.
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue