On Mon, Oct 5, 2015 at 6:54 AM, Kim Zeitler <kim.zeit...@konzept-is.de> wrote:
> I am trying to transfer a new firmware to a switch using cu(1) with XMODEM
> using a USB-to-RS232 adapter and running on -current.
>
> Connection works fine, but for the XMODEM resulting in 'Resource temporarily
> unavailable'
>
> $cu -d -l /dev/ttyU0
> ...
> ~X
> Local file? /tmp/fw.swi
> cu: /tmp/fw.swi: Resource temporarily unavailable

Tthe -d option makes cu open the tty with O_NONBLOCK so that it won't
block for carrier; perhaps it should be clearing the flag afterwards?
Hmm, no, it uses libevent, so maybe it should be *always* turning it
on xmodem_{read,write}() updated to use libevent too, or xmodem_send()
updated to explicitly mark it blocking during the transfer.

nicm?


Philip Guenther

Reply via email to