mirror of
http://mpg123.de/trunk/.git
synced 2025-08-07 21:02:55 +03:00
mpg123: fix regression of signals for terminal control since 1.31 (get rid of signal())
git-svn-id: svn://scm.orgis.org/mpg123/trunk@5511 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
@@ -112,10 +112,10 @@ static int term_setup_detail(struct termios *pattern)
|
||||
{
|
||||
mdebug("setup on fd %d", term_fd);
|
||||
|
||||
/* One might want to use sigaction instead. */
|
||||
signal(SIGCONT, term_sigcont);
|
||||
signal(SIGUSR1, term_sigusr);
|
||||
signal(SIGUSR2, term_sigusr);
|
||||
INT123_catchsignal(SIGCONT, term_sigcont);
|
||||
INT123_catchsignal(SIGUSR1, term_sigusr);
|
||||
INT123_catchsignal(SIGUSR2, term_sigusr);
|
||||
|
||||
struct termios tio = *pattern;
|
||||
tio.c_lflag &= ~(ICANON|ECHO);
|
||||
tio.c_cc[VMIN] = 1;
|
||||
|
Reference in New Issue
Block a user