From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d66c9f9cb6b86f72 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: fork; execve --> defunct process. Date: 2000/01/19 Message-ID: <3885A933.ABA22CEC@mail.com>#1/1 X-Deja-AN: 574652108 Content-Transfer-Encoding: 7bit References: <388414AD.E4D4C00D@mail.utexas.edu> <38843392.FBEA70CB@mail.com> <3885024F.E13C3561@mail.utexas.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sunrise.ch X-Trace: news1.sunrise.ch 948283703 5193 195.141.231.162 (19 Jan 2000 12:08:23 GMT) Organization: sunrise communications ag Mime-Version: 1.0 NNTP-Posting-Date: 19 Jan 2000 12:08:23 GMT Newsgroups: comp.lang.ada Date: 2000-01-19T12:08:23+00:00 List-Id: "Bobby D. Bryant" wrote: > > execve never returns if it succeeds. > > That's fine. See below. > The child process is created, execve returns a non-negative status, and the > child process picks up the name of the requested program, but it apparently > cores out before it actually does anything. execve does not return if the call is successful. I don't see what you mean here, and there is a contradication with what you are saying earlier in your message. > Has anyone here used execve from Ada? Is there a special trick required to > get it to work? Does the child process get into a confused state when execve > tries to have it jump out of the middle of a running Ada program? I.e., are > there leftover structures from Ada's run-time checking and/or task management > system that are not cleanly erased when execve is called? (I'm not > explicitly using tasks, but I assume the run-time infrastructure is there > anyway.) fork/execve is fine from an Ada program, even with tasks. I have done that for years without major problems. Post the code fragment, I cannot guess more from your message.