Ć
`Nö9c       sÚ   d  Z  d k Z d k Z d k Z d k Z d k l Z y( e i   d d j o e d  n Wn e j
 o n Xy e i	 Wn e j
 o e d  n Xd Z
 d Z d	 Z h  Z d Z d
   Z d   Z e   d S(   s  This test checks for correct fork() behavior.

We want fork1() semantics -- only the forking thread survives in the
child after a fork().

On some systems (e.g. Solaris without posix threads) we find that all
active threads survive in the child after a fork(); this is an error.

On BeOS, you CANNOT mix threads and fork(), the behaviour is undefined.
That's OK, fork() is a grotesque hack anyway. ;-) [cjh]

N(   s   TestSkippedi    s   BeOSs&   can't mix os.fork with threads on BeOSs*   os.fork not defined -- skipping test_fork1i   f0.5i   c    sK   xD t  o; t i   t |  <y t i t  Wn t j
 o n Xq Wd  S(   N(	   s   stops   oss   getpids   alives   ids   times   sleeps
   SHORTSLEEPs   IOError(   s   ids,   /mit/python/lib/python2.0/test/test_fork1.pys   f& s     c     s  x) t  t  d r }  t i t |  f  q Wt i t  t	 i
   } | i   t	 i   } t i   } | d j o` t i t  d } x9 t	 i
   d r) } t	 | | | j o | d } n q Wt i |  n0 t i | d  \ } } d a t i d t  d  S(   Ni    i   i   (   s   ranges   NUM_THREADSs   is   threads	   start_news   fs   times   sleeps	   LONGSLEEPs   alives   keyss   as   sorts   copys   prefork_livess   oss   forks   cpids   ns   keys   _exits   waitpids   spids   statuss   stops
   SHORTSLEEP(   s   is   as   prefork_livess   cpids   ns   keys   spids   statuss,   /mit/python/lib/python2.0/test/test_fork1.pys   main. s.     
     (   s   __doc__s   oss   syss   times   threads   test_supports   TestSkippeds   unames   AttributeErrors   forks	   LONGSLEEPs
   SHORTSLEEPs   NUM_THREADSs   alives   stops   fs   main(    s,   /mit/python/lib/python2.0/test/test_fork1.pys   ? s&   $		 