Gtkterm spews warnings on emulated serial ports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTKTerm |
Unknown
|
Unknown
|
|||
gtkterm (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: gtkterm
Some emulated serial ports (such as USB ACM modems, and user-space ports implemented using ptys) return EINVAL to the TIOCMGET ioctl. Gtkterm produces a warning every few seconds when connected to one of these ports. I've been using this patch in-house to suppress the message, and I'd like it to move upstream.
--- gtkterm-
+++ gtkterm-
@@ -389,7 +389,9 @@
{
{
- i18n_perror(
+ /* Ignore EINVAL, as some serial ports genuinely lack these lines */
+ if (errno != EINVAL)
+ i18n_perror(
return -2;
}
Related branches
Changed in gtkterm: | |
importance: | Undecided → Wishlist |
Hi,
Joseph has provided a debdiff to fix this issue:
http:// launchpadlibrar ian.net/ 19828800/ debdiff
Thanks,
James