22 lines
641 B
Text
22 lines
641 B
Text
Index: src/minicom.c
|
|
--- src/minicom.c.orig
|
|
+++ src/minicom.c
|
|
@@ -1107,6 +1107,7 @@ int main(int argc, char **argv)
|
|
char *remote_charset = NULL; /* Remote charset given on the command line via -R */
|
|
char pseudo[64];
|
|
/* char* console_encoding = getenv ("LC_CTYPE"); */
|
|
+ sigset_t set;
|
|
|
|
enum {
|
|
OPT_CAP_BUF_MODE = 256,
|
|
@@ -1544,7 +1545,9 @@ int main(int argc, char **argv)
|
|
#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);
|
|
|
|
keyboard(KINSTALL, 0);
|
|
|