patch-ttyrec_c 471 B

123456789101112131415161718192021
  1. $OpenBSD: patch-ttyrec_c,v 1.1 2011/11/10 21:35:02 kili Exp $
  2. --- ttyrec.c.orig Sun Jun 11 17:52:50 2006
  3. +++ ttyrec.c Wed Nov 9 21:31:06 2011
  4. @@ -203,15 +203,10 @@ doinput()
  5. void
  6. finish()
  7. {
  8. -#if defined(SVR4)
  9. - int status;
  10. -#else /* !SVR4 */
  11. - union wait status;
  12. -#endif /* !SVR4 */
  13. register int pid;
  14. register int die = 0;
  15. - while ((pid = wait3((int *)&status, WNOHANG, 0)) > 0)
  16. + while ((pid = wait3(NULL, WNOHANG, 0)) > 0)
  17. if (pid == child)
  18. die = 1;