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