detaching jobs via rsh
Per Foreby
perf at tde.lth.se
Tue Jul 4 23:00:15 AEST 1989
I'm trying to start a xterm on a MacII via rsh from a sun. I do it via
a small program which forks a child and then does the following:
set42sig();
setpgrp(0, getpid());
ioctl(...,TIOCNOTTY,...);
execvp(....);
On any other *ix where I have tried this, it works just fine. But on
AUX I get the following result:
root 6766 70 0 14:14:42 ? 0:00 in.remshd c0247b0b.1022
perf 6767 6766 0 0:00 <defunct>
perf 6768 1 11 14:14:47 ? 0:02 /usr/new/X11/xterm -display ...
perf 6769 6768 2 14:14:57 p0 0:01 -ksh
The remshd does not wait for my program, so even though it looks like
the xterm is "on its own", the rsh hangs. On the other *ix i get a
<defunct> process for a while (until the xterm has freed itself).
Obviously there is still some connection between father and son, but
what?
--
===============================================================================
Per Foreby Dept of Applied Electronics
perf at tde.lth.se Lund Institute of Technology, Lund, Sweden
===============================================================================
More information about the Comp.unix.aux
mailing list