Menu

#9 input infinite loop

open
nobody
None
5
2004-04-03
2004-04-03
P
No

An input infinite loop occurs when cdbkup/cdsplit is
invoked from something that is run from a cron job.
This causes the output to fill up the spool looping
through the loop:
do {
print "What now?\n".
"\tr = retry (you may wish to change disks
first)\n".
"\tq = quit\n".
"\tc = continue as if nothing happened\n: ";
($ans = lc(<STDIN>)) =~ s/^\s*([^\s]).*$/$1/s;
...

cdsplit.in should check to see if <STDIN> returns undef.

Discussion


Log in to post a comment.