--- rxvt-unicode/src/ptytty.C 2006/01/17 08:54:33 1.34 +++ rxvt-unicode/src/ptytty.C 2006/01/17 10:19:13 1.35 @@ -374,10 +374,14 @@ #ifndef NO_SETOWNER_TTYDEV saved = false; #endif +#if UTMP_SUPPORT + cmd_pid = 0; +#endif } rxvt_ptytty::~rxvt_ptytty () { + logout (); put (); }