Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!cmcl2!phri!marob!daveh From: daveh@marob.MASA.COM (Dave Hammond) Newsgroups: comp.unix.questions Subject: Child access to parent files opened AFTER fork/exec. Message-ID: <351@marob.MASA.COM> Date: 27 Oct 88 17:22:31 GMT Reply-To: daveh@marob.masa.com (Dave Hammond) Organization: ESCC New York City Lines: 20 Given that a child process inherits the open files of its parent, is there any way for the child to access a file opened by the parent subsequent to the child being exec'd ? As an example, the parent forks a subprocess who's task is to present data (from files or pipelines) generated by the parent. For each new data stream, the parent and child exchange messages concerning the origination of the data, the results of the presentation session, etc. Because the child is exec'd only once, it must open and manage each file or pipeline in question. It would be beneficial to divorce the child from the file/pipeline management tasks and allow it to simply regard its input as stream data to be presented. However, forking a new child for each new data stream (just to inherit a file descriptor) is undesireable, as it would cause a noticeable delay each time the child is invoked. Dave Hammond UUCP: ...!uunet!masa.com!{marob,dsix2}!daveh DOMAIN: daveh@marob.masa.com ----------------------------------------------------------------------------