Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!bywater!arnor!news From: clarke@arnor.UUCP (Ed Clarke/204800000;07-033,2630) Newsgroups: comp.unix.aix Subject: Re: /etc/rc.tcpip in the RS/6000 3002 patch Message-ID: <1990Dec7.221901.4855@arnor.uucp> Date: 7 Dec 90 22:19:01 GMT References: <1990Dec4.031214.11374@engin.umich.edu> Sender: news@arnor.uucp (NNTP News Poster) Distribution: na Organization: IBM T.J. Watson Research Center Lines: 28 From article <1990Dec4.031214.11374@engin.umich.edu>, by wross@engin.umich.edu (Wendy Ross): - ps -e commands return slightly different things. 3001 version has - five columns and 3002 has four columns. Thus, when /etc/rc.tcpip - checks for the srcmstr running, the line should be changed from - src_running=`ps -e | awk '$5 == "srcmstr" { print $1 }'` - to - src_running=`ps -e | awk '$4 == "srcmstr" { print $1 }'` Hmmmm - I just applied 3002 yesterday. As indicated, ps returns four columns instead of five. In my case, rc.tcpip WAS updated to: src_running=`ps -e | awk '$NF == "srcmstr" { print $1; exit }'` and the 'routed' uncommenting problem mentioned in another posting did not occur. I updated from tape, not from diskettes. On the other hand, ioctl and fcntl seem to be severely broken now. Anyone see some stupid mistake in the following code? int tty; tty = open( "/dev/tty1" , 0); printf("tty is %d\n",tty); if (ioctl(tty, TIOCEXCL, NULL) < 0) { perror("ioctl TIOCEXCL"); exit(1); } Fairly simple and a really bad thing to break. The fcntl error is buried in some xntp code ( ntp_io.c if you're interested ).