view tools/misc/xm @ 7238:971e7c7411b3

Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception. Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Thu Oct 06 10:13:11 2005 +0100 (2005-10-06)
parents 3b385d58d823
children 0e24e9674ded
line source
1 #!/usr/bin/env python
2 # -*- mode: python; -*-
3 import sys
5 # add fallback path for non-native python path installs if needed
6 sys.path.append('/usr/lib/python')
7 sys.path.append('/usr/lib64/python')
8 from xen.xm import main
10 main.main(sys.argv)