#ifdef TIOCEXCL added before call to ioctl
authorDavid S. Comay <comay@ucbvax.Berkeley.EDU>
Sun, 3 Oct 1982 16:08:16 +0000 (08:08 -0800)
committerDavid S. Comay <comay@ucbvax.Berkeley.EDU>
Sun, 3 Oct 1982 16:08:16 +0000 (08:08 -0800)
SCCS-vsn: old/berknet/setup.c 4.2
SCCS-vsn: old/berknet/sub.c 4.3

usr/src/old/berknet/setup.c
usr/src/old/berknet/sub.c

index 8be7cdf..6b4c524 100644 (file)
@@ -1,4 +1,4 @@
-static char sccsid[] = "@(#)setup.c    4.1     (Berkeley)      %G%";
+static char sccsid[] = "@(#)setup.c    4.2     (Berkeley)      %G%";
 
 /*
        setup.c
 
 /*
        setup.c
@@ -138,8 +138,13 @@ setup(str)
                exit(EX_OSERR);
                }
        /* set exclusive use for line */
                exit(EX_OSERR);
                }
        /* set exclusive use for line */
-       if(ioctl(netd.dp_linefd,TIOCEXCL,&stt) != 0 ||
-               gtty(netd.dp_linefd,&stt) < 0){
+#ifdef TIOCEXCL
+#ifdef VAX
+       (void)
+#endif
+       ioctl(netd.dp_linefd,TIOCEXCL,&stt);
+#endif
+       if(gtty(netd.dp_linefd,&stt) < 0){
                perror(str);
                exit(EX_OSERR);
                }
                perror(str);
                exit(EX_OSERR);
                }
index 915f1fb..2bfbab6 100644 (file)
@@ -1,4 +1,4 @@
-static char sccsid[] = "@(#)sub.c      4.2     (Berkeley)      %G%";
+static char sccsid[] = "@(#)sub.c      4.3     (Berkeley)      %G%";
 
 /*
        sub.c
 
 /*
        sub.c