/etc/rc.tcpip in the RS/6000 3002 patch
Ed Clarke/204800000;07-033,2630
clarke at arnor.UUCP
Sat Dec 8 09:19:01 AEST 1990
>From article <1990Dec4.031214.11374 at engin.umich.edu>, by wross at 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 }'` <version 3001>
- to
- src_running=`ps -e | awk '$4 == "srcmstr" { print $1 }'` <version 3002>
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 ).
More information about the Comp.unix.aix
mailing list