* fhandler_serial.cc (fhandler_serial::ioctl): Reformat. Set errno

appropriately.  Exit from the bottom.  Correctly deal with third argument for
TCFLSH.  (Suggested by Sergey Okhapkin)
This commit is contained in:
Christopher Faylor
2002-11-04 04:09:14 +00:00
parent 2f14399c16
commit b6183403ae
3 changed files with 130 additions and 84 deletions

View File

@@ -52,5 +52,7 @@ ioctl (int fd, int cmd, ...)
return tcsetattr (fd, TCSAFLUSH, (struct termios *) argp);
}
return cfd->ioctl (cmd, argp);
int res = cfd->ioctl (cmd, argp);
debug_printf ("returning %d", res);
return res;
}