Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!cvl!umd5!don From: don@umd5.UUCP Newsgroups: net.lang.c Subject: Fork and Execl Message-ID: <868@umd5.UUCP> Date: Tue, 18-Feb-86 14:08:58 EST Article-I.D.: umd5.868 Posted: Tue Feb 18 14:08:58 1986 Date-Received: Wed, 19-Feb-86 20:39:49 EST Distribution: net Organization: U of Md, CSC, College Park, Md Lines: 25 I've got a question ... Our library here is a bit shy on good Unix books, (people take them out and then never return them) and the online and Programmer's manuals haven't been able to answer my question clearly ... The question is: After issuing the fork(), I know the parent process gets the pid of the child, and the child is a copy of the parent process, but where does the execution of the child process continue from ? (assuming the child process was created with no errors) In other words, if I wanted to put an execl() in the child to overwrite the child, where would it go ? Additionally, how can I be certain that I won't ever overwrite the parent process ? Without code fragments, I've not been able to get a clear picture of how this works. AtDhVaAnNkCsE -- --==---==---==-- ".. all mimsy were the Borogroves .." ARPA: don@umd5.UMD.EDU BITNET: don%umd5@umd2 UUCP: ..!{ seismo!umcp-cs, ihnp4!rlgvax }!cvl!umd5!don (NOTE: Please mail to umcp-cs!cvl!umd5!don NOT umd5!cvl!umcp-cs!don) umcp-cs ::= mimsy.UMD.EDU | maryland.ARPA | umcp-cs.UUCP