From 6bee5b3ca0f6d61b3ad868c0a046fdb581d47532 Mon Sep 17 00:00:00 2001 From: "Sean C. Rhea" Date: Sun, 1 Apr 2007 05:07:04 +0000 Subject: [PATCH] How did we NOT always open the serial port with O_NONBLOCK? WTF? --- src/gui/DownloadRideDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/DownloadRideDialog.cpp b/src/gui/DownloadRideDialog.cpp index cf9b59afc..7ee9ae083 100644 --- a/src/gui/DownloadRideDialog.cpp +++ b/src/gui/DownloadRideDialog.cpp @@ -216,7 +216,7 @@ DownloadRideDialog::readVersion() } label->setText(label->text() + tr("done.")); ::close(fd); - fd = open(device, O_RDWR | O_NOCTTY); + fd = open(device, O_RDWR | O_NOCTTY | O_NONBLOCK); if (fd < 0) { QMessageBox::critical(this, tr("Read error"), tr("Could not open device, ") + device + @@ -303,7 +303,7 @@ DownloadRideDialog::downloadClicked() free(device); device = strdup(listWidget->currentItem()->text().toAscii().data()); hwecho = 0; - fd = open(device, O_RDWR | O_NOCTTY); + fd = open(device, O_RDWR | O_NOCTTY | O_NONBLOCK); if (fd < 0) { QMessageBox::critical(this, tr("Read error"), tr("Could not open device, ") + device +