-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app/testpmd: fix interactive mode on Windows
The cmdline_poll() function is broken and was not fully tested, go back to using cmdline_interact(). Instead, use sigaction() to cancel read character on Unix OS's and a new helper to cancel I/O on Windows. Bugzilla ID: 1180 Fixes: 0fd1386 ("app/testpmd: cleanup cleanly from signal") Cc: [email protected] Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: Olivier Matz <[email protected]> (cherry picked from commit f1d0993)
- Loading branch information
1 parent
3353cc6
commit 90ee0d6
Showing
6 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,6 +175,7 @@ cmdline_quit(struct cmdline *cl) | |
{ | ||
if (!cl) | ||
return; | ||
cmdline_cancel(cl); | ||
rdline_quit(&cl->rdl); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters