]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 248: Wait a second for "slower" modems such as the Nokia 6210 mobile.
authorTim Rice <tim@multitalents.net>
Sat, 19 Apr 2003 17:38:28 +0000 (17:38 +0000)
committerTim Rice <tim@multitalents.net>
Sat, 19 Apr 2003 17:38:28 +0000 (17:38 +0000)
faxd/ModemServer.c++

index 2b4ee5ce45b21b477fb7b2ffea6ac49250191d9f..5bcc0d81dc527fd23fc09c629639369864d520c0 100644 (file)
@@ -541,6 +541,13 @@ ModemServer::openDevice(const char* dev)
        traceServer("%s: Can not open modem (%m)", dev);
        return (false);
     }
+
+    /*
+     * Wait a second for "slower" modems
+     * such as the Nokia 6210 mobile.
+     */
+    (void) sleep(1);
+
     int flags = fcntl(modemFd, F_GETFL, 0);
     if (fcntl(modemFd, F_SETFL, flags &~ O_NDELAY) < 0) {
         traceServer("%s: fcntl: %m", dev);