summaryrefslogtreecommitdiff
path: root/audio/amp/patches/patch-ad
blob: 856b13e6fbe57339b27a7b9202ff27ed632a71a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$NetBSD: patch-ad,v 1.2 1998/08/07 10:35:53 agc Exp $

*** guicontrol.c~	Sat Aug 23 07:30:51 1997
--- guicontrol.c	Thu Mar  5 21:31:06 1998
***************
*** 312,317 ****
--- 312,325 ----
        if (quit_flag)
  	{
  /* 	  fprintf(stderr, "quit_flag is true\n"); */
+ 
+ 	  if((flags = fcntl(STDOUT_FILENO, F_GETFL, 0)) < 0)
+ 	    perror("fcntl");
+ 	  flags &= ~O_NONBLOCK;
+   
+ 	  if(fcntl(STDOUT_FILENO, F_SETFL, flags) < 0)
+ 	    perror("fcntl");
+ 
  	  exit(0);
  	}
        while(GUI_FD_TO_PLAY != -1)
***************
*** 334,340 ****
  	 
  	 if((flags = fcntl(STDIN_FILENO, F_GETFL, 0)) < 0)
  	   perror("fcntl");
! 	 flags ^= O_NONBLOCK;
  	 
  	 if(fcntl(STDIN_FILENO, F_SETFL, flags) < 0)
  	   perror("fcntl");
--- 342,348 ----
  	 
  	 if((flags = fcntl(STDIN_FILENO, F_GETFL, 0)) < 0)
  	   perror("fcntl");
! 	 flags &= ~O_NONBLOCK;
  	 
  	 if(fcntl(STDIN_FILENO, F_SETFL, flags) < 0)
  	   perror("fcntl");
***************
*** 394,400 ****
                  /* Set stdin to blocking */
                  if((flags = fcntl(STDIN_FILENO, F_GETFL, 0)) < 0)
                          perror("fcntl");
!                 flags ^= O_NONBLOCK;
                  if(fcntl(STDIN_FILENO, F_SETFL, flags) < 0)
                          perror("fcntl");
          }
--- 402,408 ----
                  /* Set stdin to blocking */
                  if((flags = fcntl(STDIN_FILENO, F_GETFL, 0)) < 0)
                          perror("fcntl");
!                 flags &= ~O_NONBLOCK;
                  if(fcntl(STDIN_FILENO, F_SETFL, flags) < 0)
                          perror("fcntl");
          }