Commits

Brian Kearns  committed bdc4935

additional fixes for test_ioctl

  • Participants
  • Parent commits 443d0b5

Comments (0)

Files changed (1)

File pypy/module/fcntl/test/test_fcntl.py

         if child_pid == 0:
             # We're the child
             time.sleep(1)
-            return
+            os._exit(0)
         try:
+            # We're the parent, we want TIOCGPGRP calls after child started but before it dies
+            time.sleep(0)
+
             buf = array.array('i', [0])
             res = fcntl.ioctl(mfd, TIOCGPGRP, buf, True)
             assert res == 0