summaryrefslogtreecommitdiff
path: root/games/bsdgames/files/patch-atc_input.c
blob: 7cafb6d74459c14d7ed546b0f187cec5489db8be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: atc/input.c
@@ -323,6 +323,10 @@
 			int aval;
 			aval = alarm(0);
 #endif
+#ifdef POSIX
+			int aval;
+			aval = alarm(0);
+#endif
 			if (fork() == 0)	/* child */
 			{
 				char *shell, *base;
@@ -358,6 +362,10 @@
 #endif
 #ifdef SYSV
 			ioctl(fileno(stdin), TCSETAW, &tty_new);
+			alarm(aval);
+#endif
+#ifdef POSIX
+			tcsetattr(fileno(stdin), TCSANOW, &tty_new);
 			alarm(aval);
 #endif
 		}