samperi@mancol.UUCP (Dominick Samperi) (03/17/88)
Does anyone have any idea how a command started by uuxqt can freeze, doing nothing, while the data to be processed is sitting in the uucp spool directory (that is, the D.xxx and X.xxx files are there, and they are in good shape)? The command in question is one that I call 'uucpio', it executes system("compress -d | rcpio -icdum"), and as the 'ps -ef' listing below shows, the necessary processes are started, but they do nothing; the same listing results if ps is run time and again, yet there is no system activity. (rcpio is cpio modified for remote use.) I'm running this under Microport's System V/AT. Any comments would be greatly appreciated. UID PID PPID C STIME TTY TIME COMMAND root 0 0 40 02:48:46 ? 300:59 swapper root 1 0 0 02:48:46 ? 0:25 [ init ] root 0 0 0 02:48:46 ? 0:55 swapper root 54 1 1 02:56:17 console 0:45 -ksh samperi 55 1 0 02:56:21 cons1 0:09 -ksh root 56 1 0 02:56:21 cons2 0:01 /etc/getty cons2 virtcon root 41 1 0 02:56:11 ? 0:03 /etc/cron lp 45 1 0 02:56:13 ? 0:01 /usr/lib/lpsched root 57 1 0 02:56:21 cons3 0:01 /etc/getty cons3 virtcon root 1124 1 0 08:46:19 ? 0:01 /etc/getty ttyM0 1200 Umarob 1123 1 0 08:46:18 ttyM0 0:02 UUXQT -smarob root 1203 54 32 08:57:40 console 0:01 ps -ef Umarob 1126 1123 0 08:46:25 ttyM0 0:00 sh -c PATH=/bin:/usr/bin LOGNAME=uucp UU_MACHINE=marob UU_USER=samperi export Umarob 1127 1126 0 08:46:26 ttyM0 0:00 uucpio -iz ~/bob/from Umarob 1131 1127 0 08:46:33 ttyM0 0:00 sh -c compress -d | rcpio -icdum Umarob 1132 1131 0 08:46:33 ttyM0 0:00 rcpio -icdum Umarob 1133 1132 0 08:46:33 ttyM0 0:02 compress -d -- Dominick Samperi, Manhattan College, NYC manhat!samperi@NYU.EDU ihnp4!rutgers!nyu.edu!manhat!samperi philabs!cmcl2!manhat!samperi ihnp4!rutgers!hombre!samperi (^ that's an ell) uunet!swlabs!mancol!samperi
romain@pyrnj.uucp (Romain Kang) (03/22/88)
In article <352@mancol.UUCP> samperi@mancol.UUCP (Dominick Samperi) writes: | Does anyone have any idea how a command started by uuxqt can freeze, doing | nothing, while the data to be processed is sitting in the uucp spool | directory (that is, the D.xxx and X.xxx files are there, and they are | in good shape)? The command in question is one that I call 'uucpio', it | executes system("compress -d | rcpio -icdum"), and as the 'ps -ef' listing | below shows, the necessary processes are started, but they do nothing; the | same listing results if ps is run time and again, yet there is no system | activity. I'm not sure this is answers your specific case, but I have seen instances where a remote system calls in on a dialup line, successfully transfers files, and exits without any problem. The catch is that once the remote system logs off, carrier no longer is present on the line, but uuxqt still calls that line its "controlling tty". Therefore, statements like fputs("Out of phase - get help\n", stderr); or efd = open("/dev/tty", 2); may hang until the next time some one dials in. At times I've hacked BSD uucp to do a TIOCNOTTY to avoid this; I'm not sure what you'd do under System V, assuming this is your problem. -- Romain Kang {allegra,cmcl2,pyramid,rutgers}!pyrnj!romain Pyramid Technology Corp. / 10 Woodbridge Center. Dr / Woodbridge NJ 07095 "Eggheads unite! You have nothing to lose but your yolks!" -Adlai Stevenson