]> thyrsus.com Git - morse-classic.git/commitdiff
More MacOS porting stuff.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 25 Jan 2005 17:23:57 +0000 (17:23 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 25 Jan 2005 17:23:57 +0000 (17:23 +0000)
morse.d/alarm.c
morse.d/morse.c

index 32985adc7bdbbefe40d3339b3800d1d391816f77..7187318a2deaabaa955ee149ba6378fa901671f5 100644 (file)
@@ -20,7 +20,8 @@ void AlarmSet(time)
 
     alarmPending = 1;
     handler.sa_handler = AlarmHandler;
-    handler.sa_mask = handler.sa_flags = 0;
+    sigemptyset(&handler.sa_mask);
+    handler.sa_flags = 0;
     sigaction(SIGALRM, &handler, NULL);
     ualarm(1000 * time, 0);
 }
index a8152d4d2f0762f253ee4b64c6a965b92c27ded7..022d96d3ac949c1939de66c9eb0a16e451935452 100644 (file)
@@ -616,7 +616,8 @@ struct sigaction handler;
     time(&starttime);
 
     handler.sa_handler = die;
-    handler.sa_mask = handler.sa_flags = 0;
+    sigemptyset(&handler.sa_mask);
+    handler.sa_flags = 0;
     sigaction (SIGINT, &handler, NULL);
     sigaction (SIGTERM, &handler, NULL);
     sigaction (SIGQUIT, &handler, NULL);
@@ -1781,7 +1782,8 @@ suspend (int sig)
 {
     struct sigaction handler;
 
-    handler.sa_mask = handler.sa_flags = 0;
+    sigemptyset(&handler.sa_mask);
+    handler.sa_flags = 0;
     handler.sa_handler = suspend;
     sigaction (SIGTSTP, &handler, NULL);
     cleanup ();