Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!tiamat!quintro!kts From: kts@quintro.uucp (Kenneth T. Smelcer) Newsgroups: comp.sys.apollo Subject: Re: vt100 woes Message-ID: <1989Jul12.032209.2072@quintro.uucp> Date: 12 Jul 89 03:22:09 GMT References: <11406@siemens.siemens.com> <1374@novavax.UUCP> Reply-To: kts@quintro.UUCP (Kenneth T. Smelcer) Organization: none Lines: 93 In article <1374@novavax.UUCP> weiner@novavax.UUCP (Bob Weiner) writes: >> So I ftp'd screen2 from an archive site. It wouldn't compile due to a >> C-compiler feature. >> >> Some info: >> running sr10.1, bsd4.3, csh > >I've had the same problem as Bob using screen2 under the same SR10.1 >environment. Anyone care to comment on how to actually get it to >work? >-- >Bob Weiner, Motorola, Inc., USENET: ...!gatech!uflorida!novavax!weiner >(407) 738-2087 Here is a patch for screen2 to get it working under SR10.1. The major problem is how screen2 checks to see if another screen process is running. Since my knowledge of TCP/IP is very limited, I just IFDEFed this test and now it works fine. If someone fixes this the right way, please let me know. BTW, this patch assumes your running screen2 with Patrick Wolfe's patches. ========================================================================= *** Makefile Wed Jun 28 10:45:41 1989 --- Makefile Thu Mar 16 00:58:05 1989 *************** *** 5,12 **** PGM = screen BIN = /usr/local/bin ! MS = l ! CFLAGS = -O CFILES = screen.c ansi.c OFILES = screen.o ansi.o --- 5,12 ---- PGM = screen BIN = /usr/local/bin ! MS = 1 ! CFLAGS = -O -DAPOLLO CFILES = screen.c ansi.c OFILES = screen.o ansi.o *** screen.c Wed Jun 28 10:45:39 1989 --- screen.c Thu Mar 16 01:07:51 1989 *************** *** 16,21 **** --- 16,22 ---- static char ScreenVersion[] = "screen 2.1 3-Mar-1989"; #include + #include #include #include #include *************** *** 24,30 **** #include #include #include - #include #include #include #include --- 25,30 ---- *************** *** 1406,1411 **** --- 1406,1413 ---- a.sun_family = AF_UNIX; strcpy (SockNamePtr, SockName); strcpy (a.sun_path, SockPath); + + #ifndef APOLLO if (connect (s, (struct sockaddr *)&a, strlen (SockPath)+2) != -1) { p = Filename (SockPath); Msg (0, "You have already a screen running on %s.\n\ *************** *** 1412,1417 **** --- 1414,1421 ---- If it has been detached, try \"screen -r\".", p); /*NOTREACHED*/ } + + #endif (void) unlink (SockPath); if (bind (s, (struct sockaddr *)&a, strlen (SockPath)+2) == -1) Msg (errno, "bind"); -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Ken Smelcer Quintron Corp. quintro!kts@lll-winken Quincy, IL tiamat!quintro!kts@uunet