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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d66c9f9cb6b86f72,start X-Google-Attributes: gid103376,public From: "Bobby D. Bryant" Subject: fork; execve --> defunct process. Date: 2000/01/18 Message-ID: <388414AD.E4D4C00D@mail.utexas.edu>#1/1 X-Deja-AN: 574121944 Content-Transfer-Encoding: 7bit X-Accept-Language: en,fr,de Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@cc.utexas.edu X-Trace: geraldo.cc.utexas.edu 948180075 28840 128.83.46.16 (18 Jan 2000 07:21:15 GMT) Organization: The University of Texas at Austin Mime-Version: 1.0 NNTP-Posting-Date: 18 Jan 2000 07:21:15 GMT Newsgroups: comp.lang.ada Date: 2000-01-18T07:21:15+00:00 List-Id: I am trying to get a program to start a second job. I import fork() and execve() from C, and the calls apparently work OK (i.e., the fork returns a legitimate PID, and the execve returns a non-negative status). However, the child process immediately(?) goes into "defunct" status. For example, if I try to run the testgtk program, the program's GUI never pops up, and a ps x shows: 29765 pts/6 ZN 0:00 [testgtk ] The parent process continues without any apparent problem. I have tried different programs for the child process to run, and all have the same problem. I am using GNAT 3.12p under Linux/glibc 2.1. Help/suggestions/explanations will be appreciated. Thanks, Bobby Bryant Austin, Texas