--- /usr/lib/rancid/bin/drancid 2010-03-10 09:39:38.000000000 -0600 +++ drancid 2009-11-20 00:28:19.000000000 -0600 @@ -189,7 +189,7 @@ while () { warn "WriteTerm: $_" if ($debug); # lets see every line for debug tr/\015//d; - if (/$prompt\s?exit(Connection closed|$)/) { warn "left WriteTerm on: $_"; $clean_run=1;last; } + if (/$prompt\s?exit$/) { warn "left WriteTerm on: $_"; $clean_run=1;last; } next if (/^(\s*|\s*$cmd\s*)$/); return(1) if /^% Unrecognized command/; # the pager can not be disabled per-session on the dell @@ -289,7 +289,7 @@ #ProcessHistory("COMMENTS","keysort","G0","!\n"); TOP: while() { tr/\015//d; - if (/[>#]\s?exit(Connection closed|$)/) { + if (/[>#]\s?exit$/) { $clean_run=1; last; }