Skip to content

Restarting devtools QEMU leaves serial port busy #22

@kzurell

Description

@kzurell
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions