summaryrefslogtreecommitdiff
path: root/net/bsddip/patches/patch-daemon.c
blob: a333eea51492b4cedf8439bbbbc9a71cee47d1e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-daemon.c,v 1.1 2013/09/10 14:26:49 joerg Exp $

--- daemon.c.orig	1995-06-30 23:41:05.000000000 +0000
+++ daemon.c
@@ -126,7 +126,7 @@ void  dip_setup ( void )
   /*
    *  Fire up the protocol here. 
    */
-  (int) protosw [ mydip.protonr - 1 ].func ( );
+  (void) protosw [ mydip.protonr - 1 ].func ( );
 
 
   /*
@@ -168,6 +168,8 @@ int  dip_daemon ( void )
     openlog ( "DIP", LOG_PID, LOG_DAEMON );
   }
 
+  /* note the race condition here; ick! */
+  tty_relock();
 
   (void) signal ( SIGALRM, sig_catcher );
   (void) alarm ( mydip.timeout );