[Python-checkins] CVS: python/dist/src/Doc/lib libos.tex,1.77,1.78

Fred L. Drake fdrake@users.sourceforge.net
Mon, 01 Apr 2002 15:30:49 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv13833/lib

Modified Files:
	libos.tex 
Log Message:
Explain that os.spawn*() return the process handle on Windows.
Clarify that os.waitpid() on Windows takes a process handle, not a process ID.
This closes SF bug #537582.


Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.77
retrieving revision 1.78
diff -C2 -d -r1.77 -r1.78
*** libos.tex	1 Feb 2002 11:27:43 -0000	1.77
--- libos.tex	1 Apr 2002 23:30:47 -0000	1.78
***************
*** 1030,1034 ****
  process; if \var{mode} is \constant{P_WAIT}, returns the process's
  exit code if it exits normally, or \code{-\var{signal}}, where
! \var{signal} is the signal that killed the process.
  
  The \character{l} and \character{v} variants of the
--- 1030,1036 ----
  process; if \var{mode} is \constant{P_WAIT}, returns the process's
  exit code if it exits normally, or \code{-\var{signal}}, where
! \var{signal} is the signal that killed the process.  On Windows, the
! process ID will actually be the process handle, so can be used with
! the \function{waitpid()} function.
  
  The \character{l} and \character{v} variants of the
***************
*** 1185,1189 ****
  
  On Windows:
! Wait for completion of a process given by process id \var{pid},
  and return a tuple containing \var{pid},
  and its exit status shifted left by 8 bits (shifting makes cross-platform
--- 1187,1191 ----
  
  On Windows:
! Wait for completion of a process given by process handle \var{pid},
  and return a tuple containing \var{pid},
  and its exit status shifted left by 8 bits (shifting makes cross-platform
***************
*** 1195,1199 ****
  child process.
  The \function{spawn()} functions called with \constant{P_NOWAIT}
! return suitable process ids.
  \end{funcdesc}
  
--- 1197,1201 ----
  child process.
  The \function{spawn()} functions called with \constant{P_NOWAIT}
! return suitable process handles.
  \end{funcdesc}