system() uses fork(), exec() and wait() I believe.
The way to handle this is to just fork() and exec() yourself without
the wait().  If you need to hold up the thread the makes the call
to mkisofs, then you probably need to do something with SIGCHLD
and a condition variable.

Brandon M. Reynolds                    Ph: (330) 644-3059
Systems Engineer                       Fax: (330) 644-8110
Commercial Timesharing Inc.            Email: [EMAIL PROTECTED]


> -----Original Message-----
> From: flobro [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 02, 2000 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: system() problem...
> 
> 
> I have an application that can be built with and without pthreads.
> Without pthreads I can make a system() call to mkisofs .. OK..
> 
> With pthreads, it just stops when it hits the system() call, and the
> main thread is showing as blocking on I/O - I have to ctrl-C 
> to get out.
> 
> Has anybody seen anything like this?
> 
> Is it me or is there something special I have to do to make a system
> call (from the main thread)?
> 
> Floyd Brown
> [EMAIL PROTECTED]
> ______________________________________________________________________
> GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
> User Support Mailing List                            [EMAIL PROTECTED]
> Automated List Manager (Majordomo)           [EMAIL PROTECTED]
> 
______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to