mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
20 lines
531 B
Plaintext
20 lines
531 B
Plaintext
Index: src/script.c
|
|
--- src/script.c.orig
|
|
+++ src/script.c
|
|
@@ -1089,11 +1089,14 @@ void do_args(int argc, char **argv)
|
|
int main(int argc, char **argv)
|
|
{
|
|
char *s;
|
|
+ sigset_t set;
|
|
#if 0 /* Shouldn't need this.. */
|
|
signal(SIGHUP, SIG_IGN);
|
|
#endif
|
|
/* On some Linux systems SIGALRM is masked by default. Unmask it */
|
|
- sigrelse(SIGALRM);
|
|
+ if (sigemptyset(&set) != -1 &&
|
|
+ sigaddset(&set, SIGALRM) != -1)
|
|
+ sigprocmask(SIG_UNBLOCK, &set, NULL);
|
|
|
|
/* initialize locale support */
|
|
setlocale(LC_ALL, "");
|