--- rxvt-unicode/src/main.C 2006/01/06 01:16:58 1.162 +++ rxvt-unicode/src/main.C 2006/01/06 02:11:15 1.163 @@ -536,7 +536,8 @@ free (cmd_argv); - pty_ev.start (pty.pty, EVENT_READ); + if (pty.pty >= 0) + pty_ev.start (pty.pty, EVENT_READ); check_ev.start ();