bjking1 / iprutils

The iprutils package is a RAID configuration utility to manage SAS RAID adapters on IBM Power Linux
Other
8 stars 9 forks source link

iprdbg will fall into an endless loop on stdin EOF #7

Open Low-power opened 3 years ago

Low-power commented 3 years ago

For example, when pressing ^D on an empty command prompt of iprdbg(8), it will fall into a loop, flooding stdout (usually a terminal) and log file (/var/log/iprdbg):

# iprdbg

ATTENTION: This utility is for adapter developers only! Use at your own risk!

Use "quit" to exit the program.

IPRDB(572A)> Invalid command �. Use "help" for a list of valid commands
IPRDB(572A)> Invalid command �. Use "help" for a list of valid commands
IPRDB(572A)> Invalid command �. Use "help" for a list of valid commands
IPRDB(572A)> Invalid command �. Use "help" for a list of valid commands
IPRDB(572A)> Invalid command �. Use "help" for a list of valid commands
IPRDB(572A)> Invalid command �. Use "help" for a list of valid commands
...

This commit fixes 2 bugs: