delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2014/05/11/14:15:17

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Rod Pemberton" <dont_use_email AT xnothavet DOT cqm>
Newsgroups: comp.os.msdos.djgpp
Subject: detecting child processes?
Date: Sun, 11 May 2014 13:59:32 -0400
Organization: Aioe.org NNTP Server
Lines: 10
Message-ID: <op.xfpixiqe6zenlw@localhost>
NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse AT aioe DOT org
User-Agent: Opera Mail/12.16 (Linux)
X-Notice: Filtered by postfilter v. 0.8.2
X-Received-Bytes: 1048
Bytes: 1122
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have a process which spawns a child of itself via system().

Although the parent and child are the same application, I'd now
like the child to function slightly differently from the parent.
To do that, I need to be able to detect that the child is not
the parent.  How is that usually done in DJGPP or DOS?


Rod Pemberton

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019