From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.os.cygwin,gmane.emacs.devel Subject: Re: Reading D-Bus messages Date: Thu, 23 Sep 2010 09:19:37 +0200 Message-ID: <874odhyliu.fsf@gmx.de> References: <878w2tx6gk.fsf@gmx.de> <4C9A493F.4050701@cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285226399 26221 80.91.229.12 (23 Sep 2010 07:19:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2010 07:19:59 +0000 (UTC) Cc: emacs-devel , cygwin@cygwin.com To: Ken Brown Original-X-From: cygwin-return-166329-goc-cygwin=m.gmane.org@cygwin.com Thu Sep 23 09:19:57 2010 Return-path: Envelope-to: goc-cygwin@lo.gmane.org Original-Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Oyg61-0005Ce-8v for goc-cygwin@lo.gmane.org; Thu, 23 Sep 2010 09:19:57 +0200 Original-Received: (qmail 22397 invoked by alias); 23 Sep 2010 07:19:51 -0000 Original-Received: (qmail 22387 invoked by uid 22791); 23 Sep 2010 07:19:49 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Original-Received: from mailout-de.gmx.net (HELO mail.gmx.net) (213.165.64.23) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Thu, 23 Sep 2010 07:19:43 +0000 Original-Received: (qmail invoked by alias); 23 Sep 2010 07:19:40 -0000 Original-Received: from p4FC19189.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.145.137] by mail.gmx.net (mp071) with SMTP; 23 Sep 2010 09:19:40 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Xref: news.gmane.org gmane.os.cygwin:122389 gmane.emacs.devel:130651 Archived-At: Ken Brown writes: > Hi Michael, Hi Ken, >> I do not understand all details of keyboard.c. Is there something I need >> to set in order to urge the call of xd_read_queued_messages (via >> gobble_input)? Or do I need to suppress further polling? What is the >> difference for Emacs running with cygwin, compared with the GNU/Linux case? >> >> Btw, when I call xd_read_queued_messages inside xd_pending_messages, >> everything works fine also with cygwin. But I guess this isn't the >> correct solution. > > I don't know enough to attempt an answer. Is there any chance you > could write a small self-contained program that exhibits the problem? > If so, there's a chance someone on the Cygwin list could help. The problem seems to be how gobble_input is called in kbd_buffer_get_event (keyboard.c): /* Note SIGIO has been undef'd if FIONREAD is missing. */ #ifdef SIGIO gobble_input (0); #endif /* SIGIO */ SIGIO is undefined, and gobble_input is not called under cygwin therefore. If I remove this conditional directive, D-Bus connections in Emacs work fine! What is the reason, that SIGIO is undefined under cygwin? > Ken Best regards, Michael.