From c51a2a8ba4b5d7fa3831303f2bf8611d23b52765 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 8 Aug 2000 20:46:47 +0000 Subject: [PATCH] * fhandler_serial.cc (tcsendbreak): "sleeptime" argument to usleep() must be in units of microseconds, not milliseconds. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_serial.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a8381ce05..b9c8ca3f9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 8 13:20:00 2000 Bob Wilson + + * fhandler_serial.cc (tcsendbreak): "sleeptime" argument to usleep() + must be in units of microseconds, not milliseconds. + Mon Aug 7 00:11:35 2000 Christopher Faylor * include/cygwin/cygwin_dll.h: Remove extraneous (and incorrect) diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc index 96d7793b2..6ceb71e31 100644 --- a/winsup/cygwin/fhandler_serial.cc +++ b/winsup/cygwin/fhandler_serial.cc @@ -285,7 +285,7 @@ fhandler_serial::close () int fhandler_serial::tcsendbreak (int duration) { - unsigned int sleeptime = 300; + unsigned int sleeptime = 300000; if (duration > 0) sleeptime *= duration;