[pve-devel] run_command is not 'thread safe'
Michael Rasmussen
mir at datanom.net
Sun Aug 11 01:15:48 CEST 2013
Hi all,
It seems that if two instances of run_command is active concurrently
stdin, stdout and stderr gets mangled. Eg. the two instances apparently
shares the same input, output and stderr. The consequence of this can
be a never ending loop if the two instances are supposed to be run
where output from one run_command is used as input to another
run_command. And example
foreach (@list) {
$result = run_command.....
foreach (@$result) {
$return = run_command....
}
}
--
Hilsen/Regards
Michael Rasmussen
Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
The modern child will answer you back before you've said anything.
-- Laurence J. Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20130811/d3cca744/attachment.sig>
More information about the pve-devel
mailing list