mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-25 14:20:53 +01:00
53081: remove old BeOS support code
This commit is contained in:
parent
79593399c4
commit
8dd271fdec
7 changed files with 5 additions and 206 deletions
|
|
@ -216,7 +216,6 @@ signal_suspend(UNUSED(int sig), int wait_cmd)
|
|||
int ret;
|
||||
|
||||
sigset_t set;
|
||||
sigset_t oset;
|
||||
|
||||
sigemptyset(&set);
|
||||
|
||||
|
|
@ -229,13 +228,7 @@ signal_suspend(UNUSED(int sig), int wait_cmd)
|
|||
(sigtrapped[SIGINT] & ~ZSIG_IGNORED)))
|
||||
sigaddset(&set, SIGINT);
|
||||
|
||||
# ifdef BROKEN_POSIX_SIGSUSPEND
|
||||
sigprocmask(SIG_SETMASK, &set, &oset);
|
||||
ret = pause();
|
||||
sigprocmask(SIG_SETMASK, &oset, NULL);
|
||||
# else /* not BROKEN_POSIX_SIGSUSPEND */
|
||||
ret = sigsuspend(&set);
|
||||
# endif /* BROKEN_POSIX_SIGSUSPEND */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue