-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
- Restarting run-tkey-qemu using Ctrl-a x, then
- re-running the client app with --port set to ...devtools/tkey-qemu-pty
...causes tk.Connect() to fail with:
me@workstation:~/gowork$ ./src/one --port ~/tkey-devtools/tkey-qemu-pty
No connection, Open /home/me/tkey-devtools/tkey-qemu-pty: Serial port busy
...so I have to Ctrl-a x Ctrl-c then reinvoke.
I'm using:
err = tk.Connect(devPath)
if err != nil {
logger.Printf("No connection, %v\n", err)
return
}
defer func() {
tk.Close()
logger.Printf("one: closing tkey...\n")
}()
...and I believe it's closing correctly the first time, still new to go.
Thanks for any help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels