Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 79986 invoked by uid 500); 12 Mar 2003 19:37:09 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 79975 invoked from network); 12 Mar 2003 19:37:08 -0000 Date: Wed, 12 Mar 2003 20:37:03 +0100 (GMT-1) From: Damir Dezeljin X-X-Sender: damird@Server.mbss.org To: APR Subject: apr_proc_wait() problem - help needed ;) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by Amavis X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi. I made a multithread program. One thread execute a function which at the end use apr_fork() to create a subprocess. Now I want (if posible) to wait on another thread for the forked process to finish. The problem is that if I use apr_proc_wait() I got the error that the given child process doesn't exists (this is obvious, because I'm on another thread). Is there any way to overide this? If no ... is there any way to know when a child process finished and also to kill a child process from another thread? Is it posible to just e.g. make a apr_file_dup() on child stdout pipe and wait with apr_poll() for an APR_HUP event on it? Any other idea? Regards, Dezo