I'm working with this code[1] to connect to a virtio virtual serial port in a Windows VM running in QEMU. When the program first starts up, it has no problem dialing the serial port (at path), and I can stop and restart the program without issue. However, if I try to close then dial the serial port again, I get a Windows "Access denied" error returned by the dialSerial function.
Is there any way to fully release the file handle so I can reconnect to it without having to restart the application? I'm needing to do this when I detect a disconnect on the other end so communications can be re-established. [1] https://github.com/sandia-minimega/minimega/blob/master/src/miniccc/virtio_windows.go -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e21af2fb-132d-49d7-8908-a748d590d574n%40googlegroups.com.