Subprocess still running and spawn_proc_prog() returns immediately
am 03.09.2009 19:31:15 von eric.berg
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=
=20to 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=
=20at 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.
_______________________________________________
RE: Subprocess still running and spawn_proc_prog() returns immediately
am 03.09.2009 21:02:08 von eric.berg
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=20
> -----Original Message-----
> From: Berg, Eric: IT (NYK)=20
> Sent: Thursday, September 03, 2009 1:31 PM
> To: modperl@perl.apache.org
> Subject: Subprocess still running and spawn_proc_prog()=20
> returns immediately
>=20
> I've got an Apache2 problem with a registry script that runs another
> perl script in a subprocess. The spawn_proc_prog() returns=20
> 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.
>=20
> The subprocess script doesn't fork or anything like that, yet
> spawn_proc_prog() is not waiting for it to exit.
>=20
> Any ideas? Need more info? Thanks, folks.
>=20
> 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=
=20to 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=
=20at 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.
_______________________________________________