X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:to:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=g7fwdx/14T5tLrO6 vKEHRWTZRt8YRozfJSf7N98ph75QE7bsAUjDPXGCNgHBx9FNHbZsWTHVd2YT4nA/ cWt6AaL/Rtb7oWFyR7+E8rvUsiAjfNu8ECeilFBeIdsFTXWubHF3GFl/Cn7qe9qi KFdyIBbPH3eYk52x491Jj2/7KVg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:to:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=ZosbTCKW945dlRxfVN5hi/ Mf7io=; b=LhD85cX7A9nKHol2atl5qUWhnrV14Yov5m0Z2JhHgmhoXkW14aM163 WjJe8i8BXvjCRB4wb/aH1NY6NzHokK8OObUiLdzG2wBYm+OH2OPFKtJwf/9JaMGY etPkQ/f6OcnJVDaSXKOyOt3jUUiO3EbyUWhbHttFn4PfYVKZghhFA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*r:NNFMP, H*M:JavaMail X-HELO: nh604-vm7.bullet.mail.ssk.yahoo.co.jp DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1551834621; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=mGAOu4lp3H4s0QSl0JVhJfvTJlATJ37n3wmxxcwWgxA=; b=n+54Y0aLzCQQfhYzVFnSP0WY/yY1Wg/jVcXdn+OQVhzg6EJFRPC2BrZf7tgWukRp 5qWuEOTdE0PvcjmYC+e3/8MD51sh4n9TIc684RCqcbBKSMBUWlCcgJx7Hapx7OQ7C9B ex7awq13C2PLTY2HHFlxzm0wqLnIZLTAi+w2YziE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=E/IrJh3rKkT7w0gkWYTuS4b6bL/Rnsiz1XLhNhSh3szJH2BPbEjFQg5o4pF6wPdC Ajref5mbsenNXA6WFQSATdYFKrxhiMogDH+STcw04LqtKfl28BBR4CxtJRfMmXKxR1J SbSyVl3p9iGXAIPEFx9EvitE3n9T1+xBuOjAiR4g=; Date: Wed, 6 Mar 2019 10:10:19 +0900 (JST) From: Tatsuro MATSUOKA Reply-To: Tatsuro MATSUOKA To: Achim Gratz , Message-ID: <1869437449.2276597.1551834619821.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <648344595.103002.1551831017801.JavaMail.yahoo@mail.yahoo.co.jp> References: <1439412702 DOT 1866573 DOT 1551653028041 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT co DOT jp> <1439412702 DOT 1866573 DOT 1551653028041 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT co DOT jp> <0faa5fb55a0af4803fcdff786dba8be440355609 DOT camel AT cygwin DOT com> <1885179468 DOT 2217358 DOT 1551790639928 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT co DOT jp> <87d0n586qw DOT fsf AT Rainer DOT invalid> <648344595 DOT 103002 DOT 1551831017801 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT co DOT jp> Subject: Re: Patch request to qt 5.9.4 (Re: [ANNOUNCEMENT] Qt 5.9.4) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x261AZ2v027507 >> From: Achim Gratz >> To: cygwin >> Cc: >> Date: 2019/3/6, Wed 04:24 >> Subject: Re: Patch request to qt 5.9.4 (Re: [ANNOUNCEMENT] Qt 5.9.4) >> >> T atsuro MATSUOKA writes: >>>   I contacted with Enrico who tells me the patch that I have shown. >> >> Yes, but that monkeys around the real problem.  What Yaakov is telling >> you is that there are two options and we don't know yet which one we >> have to deal with. >> >> If O_NONBLOCK is needed, but does not work correctly under Cygwin, then >> that's a bug in Cygwin.  For this case, Corinna asks you to create an >> STC that demonstrates the bug so it can be triaged without having to >> work with something as complex as the Qt terminal in Cygwin. >> >> If on the other hand O_NONBLOCK is in fact not needed and just shows >> different behaviour on different systems without a bug in the >> implementation being present, then upstream should remove that argument. >> >> >> Regards, >> Achim. > > Seeing ML archive that Enrico indicated, > > Re: select() and named pipes > > #include > #include > #include > #include > #include > #include > #include > #include > > #define FIFONAME "/tmp/pipe" > > int main(void) > { >     int fd; >     int nsel; >     fd_set readfds; >     FD_ZERO(&readfds); > >     if (mkfifo(FIFONAME, 0600) < 0) { >         perror("mkfifo"); >         exit(1); >     } > >     fd = open(FIFONAME, O_RDONLY | O_NONBLOCK); > >     if (fd < 0) { >         perror("open"); >         remove(FIFONAME); >         exit(2); >     } > >     FD_SET(fd, &readfds); >     do { >         nsel = select(fd + 1, &readfds, 0, 0, 0); >     } while (nsel == -1 && (errno == EINTR || errno == EAGAIN)); > >     if (nsel == -1) { >         perror("select"); >         exit(3); >     } > >     if (FD_ISSET(fd, &readfds)) { >         char buf[100]; >         int status; >         int count = 0; >         printf("%d: ", ++count); >         while ((status = read(fd, buf, sizeof(buf) - 1))) { >             if (status > 0) { >                 buf[status] = '\0'; >                 printf("%s", buf); >             } else if (errno == EAGAIN) { >                     printf("\n%d: ", ++count); >             } else { >                 perror("read"); >                 break; >             } >         } >     } > >     close(fd); >     remove(FIFONAME); >     return 0; > } > > > > As you wrote this is a issue of Cygwin issue. > But As long as O_NONBLOCK does not work on Cygwin, Enrico's workaround can > be attached for qt. Apart from Qt maintainer accepts Enrico's patch, I will raise O_NONBLOCK issue by another post. Tatsuro -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple