[Yum-devel] [PATCH 2/4] use pipe instead of tempfiles.. ~5% speedup

Zdenek Pavlas zpavlas at redhat.com
Wed Nov 28 09:25:24 UTC 2012


>  One downside to this is that you need to deal with with all the
> possible deadlock issues. Eg. you now have:
> ..
> ...and if we ever block on one side of a worker, while it's blocked
> on the other side we deadlock.

I've cheated a bit there, parent reads from worker's stdout only.
Stderr is not redirected, it goes directly to console/whatever,
so worker never blocks on stderr.write()..

I still don't get why some messages are printed to stdout and some
to stderr.. do we really need to log both?

Could be fixed either by select()ing, or updating worker.py
to always print errors on stdout (would prefer that)


More information about the Yum-devel mailing list