--- rxvt-unicode/doc/pty-fd 2005/02/17 15:07:48 1.1 +++ rxvt-unicode/doc/pty-fd 2005/02/17 15:13:47 1.2 @@ -7,6 +7,7 @@ fcntl $pty, F_SETFD, 0; # clear close-on-exec system "rxvt -pty-fd " . (fileno $pty) . "&"; +close $pty; # now communicate with rxvt my $slave = $pty->slave;