Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Subprocess still running and spawn_proc_prog() returns immediately

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


eric.berg at barclayscapital

Sep 3, 2009, 10:31 AM

Post #1 of 2 (507 views)
Permalink
Subprocess still running and spawn_proc_prog() returns immediately

I've got an Apache2 problem with a registry script that runs another
perl script in a subprocess. The spawn_proc_prog() returns immediately,
though the subprocess is still running, which causes a blocking
situation when I try to read the stdout/err causing the script to hang
indefinitely.

The subprocess script doesn't fork or anything like that, yet
spawn_proc_prog() is not waiting for it to exit.

Any ideas? Need more info? Thanks, folks.

Eric
_______________________________________________

This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group.
_______________________________________________


eric.berg at barclayscapital

Sep 3, 2009, 12:02 PM

Post #2 of 2 (458 views)
Permalink
RE: Subprocess still running and spawn_proc_prog() returns immediately [In reply to]

BTW, using IPC::Run3 -- which I could do since I didn't have to set env
vars or a few other things -- worked just fine.

Eric

> -----Original Message-----
> From: Berg, Eric: IT (NYK)
> Sent: Thursday, September 03, 2009 1:31 PM
> To: modperl [at] perl
> Subject: Subprocess still running and spawn_proc_prog()
> returns immediately
>
> I've got an Apache2 problem with a registry script that runs another
> perl script in a subprocess. The spawn_proc_prog() returns
> immediately,
> though the subprocess is still running, which causes a blocking
> situation when I try to read the stdout/err causing the script to hang
> indefinitely.
>
> The subprocess script doesn't fork or anything like that, yet
> spawn_proc_prog() is not waiting for it to exit.
>
> Any ideas? Need more info? Thanks, folks.
>
> Eric
_______________________________________________

This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group.
_______________________________________________

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.