ia64/xen-unstable

changeset 5117:6c5699e95a56

bitkeeper revision 1.1527 (4292f7001CpWg14f57Koe8LjTqtnSA)

Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
author kaf24@firebug.cl.cam.ac.uk
date Tue May 24 09:42:24 2005 +0000 (2005-05-24)
parents f90d273f7570 d98308dd856e
children 242591aabc7a 17e2e8a32c9e 478f75e49113
files tools/python/xen/util/xpopen.py
line diff
     1.1 --- a/tools/python/xen/util/xpopen.py	Tue May 24 09:42:18 2005 +0000
     1.2 +++ b/tools/python/xen/util/xpopen.py	Tue May 24 09:42:24 2005 +0000
     1.3 @@ -1,3 +1,60 @@
     1.4 +#
     1.5 +# Copyright (c) 2001, 2002, 2003, 2004 Python Software Foundation; All Rights Reserved
     1.6 +#
     1.7 +# PSF LICENSE AGREEMENT FOR PYTHON 2.3
     1.8 +# ------------------------------------
     1.9 +# 
    1.10 +# 1. This LICENSE AGREEMENT is between the Python Software Foundation
    1.11 +# ("PSF"), and the Individual or Organization ("Licensee") accessing and
    1.12 +# otherwise using Python 2.3 software in source or binary form and its
    1.13 +# associated documentation.
    1.14 +# 
    1.15 +# 2. Subject to the terms and conditions of this License Agreement, PSF
    1.16 +# hereby grants Licensee a nonexclusive, royalty-free, world-wide
    1.17 +# license to reproduce, analyze, test, perform and/or display publicly,
    1.18 +# prepare derivative works, distribute, and otherwise use Python 2.3
    1.19 +# alone or in any derivative version, provided, however, that PSF's
    1.20 +# License Agreement and PSF's notice of copyright, i.e., "Copyright (c)
    1.21 +# 2001, 2002, 2003, 2004 Python Software Foundation; All Rights Reserved" are
    1.22 +# retained in Python 2.3 alone or in any derivative version prepared by
    1.23 +# Licensee.
    1.24 +# 
    1.25 +# 3. In the event Licensee prepares a derivative work that is based on
    1.26 +# or incorporates Python 2.3 or any part thereof, and wants to make
    1.27 +# the derivative work available to others as provided herein, then
    1.28 +# Licensee hereby agrees to include in any such work a brief summary of
    1.29 +# the changes made to Python 2.3.
    1.30 +# 
    1.31 +# 4. PSF is making Python 2.3 available to Licensee on an "AS IS"
    1.32 +# basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
    1.33 +# IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
    1.34 +# DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
    1.35 +# FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.3 WILL NOT
    1.36 +# INFRINGE ANY THIRD PARTY RIGHTS.
    1.37 +# 
    1.38 +# 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
    1.39 +# 2.3 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
    1.40 +# A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.3,
    1.41 +# OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
    1.42 +# 
    1.43 +# 6. This License Agreement will automatically terminate upon a material
    1.44 +# breach of its terms and conditions.
    1.45 +# 
    1.46 +# 7. Nothing in this License Agreement shall be deemed to create any
    1.47 +# relationship of agency, partnership, or joint venture between PSF and
    1.48 +# Licensee.  This License Agreement does not grant permission to use PSF
    1.49 +# trademarks or trade name in a trademark sense to endorse or promote
    1.50 +# products or services of Licensee, or any third party.
    1.51 +# 
    1.52 +# 8. By copying, installing or otherwise using Python 2.3, Licensee
    1.53 +# agrees to be bound by the terms and conditions of this License
    1.54 +# Agreement.
    1.55 +# 
    1.56 +# Modifications: Copyright (c) 2005 Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
    1.57 +# - add support for excluding a list of file descriptors from being
    1.58 +#   closed, allowing access to those file descriptors from the command.
    1.59 +#
    1.60 +
    1.61  """Spawn a command with pipes to its stdin, stdout, and optionally stderr.
    1.62  
    1.63  The normal os.popen(cmd, mode) call spawns a shell command and provides a