Redirect Output in the Middle of a Program - Missing Feature

Maarten Litmaath maart at cs.vu.nl
Wed May 18 11:31:49 AEST 1988


In article <1028 at unmvax.unm.edu> mike at turing.UNM.EDU.UUCP (Michael I. Bushnell) writes:
\In article <1242 at ark.cs.vu.nl> maart at cs.vu.nl (Maarten Litmaath) writes:
\
\>There should be some system call to indicate that some stream of a child
\>is to be reopened. The indication will probably be some kind of signal.
\>...
\
\Sigh.  This is real hard to do for the same reason fixing vhangup is
\hard.  The file descriptors are in the processes u. area, and are thus
\unavailable to the parent when it executes the system call.

What's wrong with the following: supply the process id, and the kernel
can come up with anything you want to know about the process, including
signal indication bits, file descriptors, etc., so you can change them too.
-- 
South-Africa:                         |Maarten Litmaath @ Free U Amsterdam:
           revival of the Third Reich |maart at cs.vu.nl, mcvax!botter!ark!maart



More information about the Comp.unix.wizards mailing list