TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Bob van der Poel 76510,2203
from: Pete Lyall 76703,4230
date: 1991-07-21 17:35:20
subject: #11418-forks and pipes

#: 11422 S12/OS9/68000 (OSK)
    21-Jul-91  17:35:20
Sb: #11418-forks and pipes
Fm: Pete Lyall 76703,4230
To: Bob van der Poel 76510,2203

Bob -

A) Is it that the children never die, _or_ that the parent (actually
GRANDPARENT) never get a death notification? If this is the case, it's because
Shell breaks the parent/child lineage, and the child would have noone to report
to if the Shell goes away.

B) Have you tried the 'popen()' call? (if 6809)... If not, that's what you
probably want. Mirrors Unix 'popen()' exactly.. i.e.:

  int path;

  path = popen("procs", "r");    /* fork a 'procs' command; read its output */
   .....
  pclose(path);

Actually - I can't remember if popen is high level (fgets, etc.) or lower
level... I think now that it's HIGH level...

In any case, there should be a code fragment around that implements popen() in
LIB 3 if you're running 68K and haven't got it in the library.

Pete

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.