Remove special cases for undef input
It's too buggy; in some edge cases it results in an infinite input loop with 100% cpu. If you want to restart, use 'restart' instead of eof'ing the input with ^D.
This commit is contained in:
parent
9c779d022a
commit
0db3e0ed81
2 changed files with 5 additions and 10 deletions
|
@ -13,12 +13,3 @@ sub command :Tab(restart) ($self, $cart, $command, @) {
|
|||
|
||||
return ABORT, "exec() failed. You'll have to restart revbank yourself :P";
|
||||
}
|
||||
|
||||
sub hook_input($class, $cart, $input, $split_input, @) {
|
||||
return if defined $input;
|
||||
|
||||
call_hooks("restart_restart");
|
||||
no warnings qw(exec);
|
||||
exec $0;
|
||||
call_hooks("restart_survived");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue