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:
Juerd Waalboer 2024-01-05 23:40:46 +01:00
parent 9c779d022a
commit 0db3e0ed81
2 changed files with 5 additions and 10 deletions

View file

@ -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");
}