From e3cff14e0336b70bb7aad4855b8b2f6c4d963d05 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 1 Dec 2018 21:55:32 -0500 Subject: Fix sandman hang It was hanging after sending SIGTSTP to its child, then receiving a SIGCHLD to indicate the child had stopped. --- sandman.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sandman.m') diff --git a/sandman.m b/sandman.m index 44ab267..e8163c0 100644 --- a/sandman.m +++ b/sandman.m @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) { struct sigaction sa = { .sa_handler = handler, .sa_mask = mask, - .sa_flags = SA_RESTART, + .sa_flags = SA_NOCLDSTOP | SA_RESTART, }; sigaction(SIGCHLD, &sa, NULL); @@ -56,7 +56,7 @@ int main(int argc, char *argv[]) { [[NSWorkspace sharedWorkspace] notificationCenter] addObserverForName: NSWorkspaceWillSleepNotification object: nil - queue: [NSOperationQueue mainQueue] + queue: nil usingBlock: ^(NSNotification *note) { (void)note; int error = kill(pid, SIGTSTP); @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) { [[NSWorkspace sharedWorkspace] notificationCenter] addObserverForName: NSWorkspaceDidWakeNotification object: nil - queue: [NSOperationQueue mainQueue] + queue: nil usingBlock: ^(NSNotification *note) { (void)note; int error = kill(pid, SIGCONT); -- cgit 1.4.0 rc/diff/bin/bri.c?id=62213e443d8720845a1934e299fd651bef38190f&follow=1'>diff
path: root/bin/bri.c (unfollow)
Commit message (Collapse)Author
2019-01-13Enable warnings in libeditJune McEnroe
2019-01-13Show full path in RPS1June McEnroe
2019-01-13Shorten $HOME to ~ in prompt expansionJune McEnroe
2019-01-13Document PSlitJune McEnroe
2019-01-13Document PS0June McEnroe
2019-01-13Set PS0 in cashJune McEnroe
2019-01-13Add PS0June McEnroe
2019-01-13Change default ENV from cashrc to env.shJune McEnroe
2019-01-13Use colours in cash promptsJune McEnroe
2019-01-12Set PSlit like NetBSD shJune McEnroe
2019-01-12Install gnupg2 from pkgsrc and symlink gpgJune McEnroe
2019-01-12Reference cash builtin man pages in cash.1 SEE ALSOJune McEnroe
2019-01-12Restore cash builtin man page datesJune McEnroe
2019-01-12Use local libeditJune McEnroe
2019-01-12Replace libedit MakefileJune McEnroe
2019-01-11Import /usr/src/lib/libedit from NetBSD 8.0June McEnroe
2019-01-11Add PSlit for prompt escapesJune McEnroe
2019-01-11Don't make depend automaticallyJune McEnroe