diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-08-16 11:44:52 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-08-16 11:44:52 +0000 |
commit | 73b9315e56f5f635eaf82a08271e8f462b731972 (patch) | |
tree | d6c90b9cb73d6e3bf57adf535b1995115fcba1d4 /rfcomm | |
parent | a1bc48d15a5d6e78efe744eb7b27b6421cb7222f (diff) |
Don't forget to unblock signals for ppoll()
Diffstat (limited to 'rfcomm')
-rw-r--r-- | rfcomm/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rfcomm/main.c b/rfcomm/main.c index 5167d497..9baf8533 100644 --- a/rfcomm/main.c +++ b/rfcomm/main.c @@ -385,6 +385,11 @@ static void cmd_connect(int ctl, int dev, bdaddr_t *bdaddr, int argc, char **arg sigaction(SIGHUP, &sa, NULL); sigfillset(&sigs); + sigdelset(&sigs, SIGCHLD); + sigdelset(&sigs, SIGPIPE); + sigdelset(&sigs, SIGTERM); + sigdelset(&sigs, SIGINT); + sigdelset(&sigs, SIGHUP); p.fd = fd; p.events = POLLERR | POLLHUP; @@ -506,6 +511,11 @@ static void cmd_listen(int ctl, int dev, bdaddr_t *bdaddr, int argc, char **argv sigaction(SIGHUP, &sa, NULL); sigfillset(&sigs); + sigdelset(&sigs, SIGCHLD); + sigdelset(&sigs, SIGPIPE); + sigdelset(&sigs, SIGTERM); + sigdelset(&sigs, SIGINT); + sigdelset(&sigs, SIGHUP); p.fd = fd; p.events = POLLERR | POLLHUP; |