Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401475 - gentoolkit.query throws exceptions on close sys.stdin
Summary: gentoolkit.query throws exceptions on close sys.stdin
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2012-01-30 11:15 UTC by Tony Przygienda
Modified: 2012-01-30 13:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Tony Przygienda 2012-01-30 11:15:30 UTC
when run in a daemon with closed sys.stdin

 line 39, in QueryInstalledPackages\n    from gentoolkit.query import Query\n', 

'  File "/usr/lib/python2.6/site-packages/gentoolkit/", 
line 17, in <module>\n    \'piping\': 
False if sys.stdout.isatty() else True,\n']

Reproducible: Always

Steps to Reproduce:
obvious, close stdin and run the Query from gentoolkit.query
Comment 1 Tony Przygienda 2012-01-30 11:19:30 UTC
well, maybe it's arguable. I just close the sys.stdin in python to daemonize but it can be argued that it should be some kind of file object still that points to /dev/null and then it may work.