Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 401475

Summary: gentoolkit.query throws exceptions on close sys.stdin
Product: Portage Development Reporter: Tony Przygienda <prz>
Component: Core - Ebuild SupportAssignee: Portage Tools Team <tools-portage>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

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.