Becoming parent ...
Jochen Manns, PI der Uni Bonn, 732738/3611
MANNS%DBNPIB5.BITNET at cunyvm.cuny.edu
Sat Nov 3 20:12:14 AEST 1990
Dear UNIX-Experts,
perhaps some of you can give me an answer of two UNIX questions:
- is it possible for a process to become a processes parent? In
Detail: I've got a job manager starting processes and controlling
them especially when they die to gather statistics and so on.
Now if the job manager dies and restarts again there no problem
to save its internal state i.e. all the processes it started and
recover this information from a disk file but all the children
have got some other parents (indeed, the new parent is always
process 1). So how can I attach to those processes again. And:
why aren't they killed when the job manager is killed (in fact
we like the way the did NOT die, but I would like to understand
this)?
- is there a way to access (argc,argv) from anywhere in a program?
In Detail: somewhere deeply nested in a library a subroutine
descided that it will need the commandline arguments of the
process but there is no way to get it through the usage of
parameters. For me it would be enough to get the whole line
instead of (argc,argv).
We are running UNIX V.3 on a DG AViiON 300.
Thank you in advance
Jochen Manns
Physikalisches Institut der Universitaet Bonn
Nussallee 12
5300 Bonn 1
(West Germany)
More information about the Comp.unix.questions
mailing list