ó
úR_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(    (    s\   /var/www/syncserver/local/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(    (    (    s\   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__monkey_sigchld_3.pyt   <module>   s.   	
