Path: utzoo!utgpu!watserv1!watmath!att!att!emory!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!bacchus.pa.dec.com!decuac!haven!adm!news From: MANNS%DBNPIB5.BITNET@cunyvm.cuny.edu (Jochen Manns, PI der Uni Bonn, 732738/3611) Newsgroups: comp.unix.questions Subject: Becoming parent ... Message-ID: <24928@adm.BRL.MIL> Date: 3 Nov 90 09:12:14 GMT Sender: news@adm.BRL.MIL Lines: 30 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)