mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
[readline] Add an optional timeout to readline_history()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ int shell ( void ) {
|
||||
|
||||
/* Read and execute commands */
|
||||
do {
|
||||
readline_history ( shell_prompt, NULL, &history, &line );
|
||||
readline_history ( shell_prompt, NULL, &history, 0, &line );
|
||||
if ( line ) {
|
||||
rc = system ( line );
|
||||
free ( line );
|
||||
|
||||
Reference in New Issue
Block a user