X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" 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: NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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