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 o=
therwise 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 receive=
d 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, invest=
ment products or other financial product or service, an official confirma=
tion of any transaction, or an official statement of Barclays. Any views =
or opinions presented are solely those of the author and do not necessari=
ly represent those of Barclays. This e-mail is subject to terms available=
at the following link: www.barcap.com/emaildisclaimer. By messaging wi=
th Barclays you consent to the foregoing. Barclays Capital is the invest=
ment banking division of Barclays Bank PLC, a company registered in Engla=
nd (number 1026167) with its registered office at 1 Churchill Place, Lond=
on, E14 5HP. This email may relate to or be sent from other members of t=
he Barclays Group.
_______________________________________________
eric.berg [ Do, 03 September 2009 19:31 ] [ ID #2014498 ]

RE: Subprocess still running and spawn_proc_prog() returns immediately

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.apache.org
> 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 o=
therwise 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 receive=
d 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, invest=
ment products or other financial product or service, an official confirma=
tion of any transaction, or an official statement of Barclays. Any views =
or opinions presented are solely those of the author and do not necessari=
ly represent those of Barclays. This e-mail is subject to terms available=
at the following link: www.barcap.com/emaildisclaimer. By messaging wi=
th Barclays you consent to the foregoing. Barclays Capital is the invest=
ment banking division of Barclays Bank PLC, a company registered in Engla=
nd (number 1026167) with its registered office at 1 Churchill Place, Lond=
on, E14 5HP. This email may relate to or be sent from other members of t=
he Barclays Group.
_______________________________________________
eric.berg [ Do, 03 September 2009 21:02 ] [ ID #2014500 ]
Webserver » gmane.comp.apache.mod-perl » Subprocess still running and spawn_proc_prog() returns immediately

Vorheriges Thema: Error with File::upload
Nächstes Thema: Software caused connection abort at