about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--sandman.m6
1 files changed, 3 insertions, 3 deletions
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);
>Implement graceful shutdownJune McEnroe 2019-10-26Require PASS before USERJune McEnroe 2019-10-26Track channel topicsJune McEnroe 2019-10-26Set AWAY when no clients are connectedJune McEnroe 2019-10-26Add flags to request TOPIC and NAMES on client connectJune McEnroe 2019-10-26OopsJune McEnroe 2019-10-26Disconnect client on unknown commandJune McEnroe 2019-10-26Allow reading sensitive information from filesJune McEnroe 2019-10-26Add rc scriptJune McEnroe 2019-10-25Add install and uninstall targetsJune McEnroe 2019-10-25Expand documentationJune McEnroe 2019-10-25Add AGPLv3 notice on client registrationJune McEnroe 2019-10-25Rename project pounceJune McEnroe