-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conacc: Fix shutdown while in open issue
If an open call from conacc is not going to return in a timely manner, like it's a server relpkt or mux, you can't stop the operation quickly because the connacc code in that case waits for the open to complete before handling the shutdown (or disable). Modify the code to close the connection in the shutdown or disable if the open is in progress, and then finish the shutdown when the close completes. For instance, if you started gensiot with: ools/gensiot -a 'conacc,relpkt(mode=server),msgdelim,serialdev,/dev/ttyPipeA0,115200n81,local' Doing a ^C on it would take a long time, basically until gensio gave up on a timeout. With this change, the close happens immediately. Signed-off-by: Corey Minyard <[email protected]>
- Loading branch information
Showing
1 changed file
with
59 additions
and
8 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