Issue #3216 has been updated by liweitianux. Status changed from New to Resolved
Duplicate of bug #3215, so close this one. ---------------------------------------- Bug #3216: Hang in tcdrain(3) after write(3) http://bugs.dragonflybsd.org/issues/3216#change-13839 * Author: noloader * Status: Resolved * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- Hi Everyone, I'm testing some software on DragonFly. There's not much to it. It talks to the modem, and sends an ATZ and then reads the response. Linux, FreeBSD, NetBSD, OpenBSD and OS X are OK. My test rig is DragonFly 5.6-RELEASE x86_64 (fully patched) with a USR5637 modem, https://www.amazon.com/gp/product/B0013FDLM0. The modem is located at /dev/cuaU0. DragonFly hangs on the call to tcdrain(3). Looking at the man page I don't see any special handling. Cf., http://man.dragonflybsd.org/?command=tcdrain. Attached is the reproducer. The trace is: % ./test.exe Setting TIOCEXCL Getting tty Setting tty options Flushing tty Setting tty Writing ATZ Waiting for write <<-- call to tcdrain(fd) Thanks. ---Files-------------------------------- modem-read.c (2.85 KB) -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
