ó
ÐH/\c           @  sO  d  d l  m Z d  d l Z e j j ƒ  d  d l m Z d  d l Z d  d l Z d  d l	 Z	 d  d l
 Z
 d „  Z e e	 d ƒ rAe ƒ  j j ƒ  e j ƒ  Z e r° e e ƒ qKe	 j	 e	 j e	 j ƒ e
 j e j d d g d e
 j d	 e
 j ƒZ e j j ƒ  e j j ƒ  e j ƒ  e j j ƒ  e j j ƒ  e j d
 ƒ n
 e d ƒ d S(   iÿÿÿÿ(   t   print_functionN(   t   get_hubc         C  sd   y t  j |  d ƒ \ } } Wn) t k
 rG t  j |  d ƒ \ } } n X| d k s` t | ƒ ‚ d  S(   Ni    (   t   ost   waitpidt   OSErrort   AssertionError(   t   pt   _t   stat(    (    sB   lib/python2.7/site-packages/gevent/tests/test__monkey_sigchld_3.pyt   _waitpid   s
    t   SIGCHLDs   -cs
   import syst   stdoutt   stderri    s   No SIGCHLD, not testing(   t
   __future__R    t   gevent.monkeyt   geventt   monkeyt	   patch_allR   R   t   syst   signalt
   subprocessR	   t   hasattrt   loopt   install_sigchldt   forkt   pidR
   t   SIG_DFLt   Popent
   executablet   PIPEt   popenR   t   readR   t   waitt   closet   exitt   print(    (    (    sB   lib/python2.7/site-packages/gevent/tests/test__monkey_sigchld_3.pyt   <module>   s.   	
