From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#13299: 24.3.50; Tramp adb and device not found Date: Mon, 18 Mar 2013 18:36:37 +0100 Message-ID: <87a9q0obiy.fsf@gmx.de> References: <87han5s0dv.fsf@gmx.de> <87r4m6p79h.fsf@gmx.de> <874nitco03.fsf@gmx.de> <84a9pqep2t.fsf@aol.com> <87mwvkrvod.fsf@gmx.de> <87wqtuhzws.fsf@gmx.de> <87d2v62pui.fsf@gmx.de> <87hakandah.fsf@gmx.de> <83a9q13mf0.fsf@gnu.org> <8738vt88n4.fsf@gmx.de> <83vc8o1uw0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363628543 10121 80.91.229.3 (18 Mar 2013 17:42:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Mar 2013 17:42:23 +0000 (UTC) Cc: 13299@debbugs.gnu.org, nyc4bos@aol.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 18 18:42:45 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UHe55-0007LI-JM for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Mar 2013 18:42:43 +0100 Original-Received: from localhost ([::1]:43241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHe4i-000351-LH for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Mar 2013 13:42:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHe01-0003m3-N8 for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2013 13:37:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHe00-0002Qs-2Y for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2013 13:37:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHdzz-0002Qn-W6 for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2013 13:37:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UHe1W-0002ZE-AM for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2013 13:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Mar 2013 17:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13299-submit@debbugs.gnu.org id=B13299.13636283069823 (code B ref 13299); Mon, 18 Mar 2013 17:39:02 +0000 Original-Received: (at 13299) by debbugs.gnu.org; 18 Mar 2013 17:38:26 +0000 Original-Received: from localhost ([127.0.0.1]:33892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHe0v-0002YN-T7 for submit@debbugs.gnu.org; Mon, 18 Mar 2013 13:38:26 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:65172) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHe0t-0002Y6-4c for 13299@debbugs.gnu.org; Mon, 18 Mar 2013 13:38:24 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.35]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MFfeF-1UTUUB0cVR-00EhpF for <13299@debbugs.gnu.org>; Mon, 18 Mar 2013 18:36:42 +0100 Original-Received: (qmail invoked by alias); 18 Mar 2013 17:36:41 -0000 Original-Received: from p57BB9672.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.114] by mail.gmx.net (mp035) with SMTP; 18 Mar 2013 18:36:41 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18xTHYaXEsxYMExN24fLU44E4QOIPLn97dT6i1NLR 0ts2qcmzePIGSG In-Reply-To: <83vc8o1uw0.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 18 Mar 2013 19:26:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72682 Archived-At: Eli Zaretskii writes: >> There is the following code: >> >> (with-timeout (10) >> (with-temp-buffer >> (when (zerop (call-process tramp-adb-program nil t nil "devices")) >> ... >> >> No problem under GNU/Linux. Under MS Windows, the timeout does not >> interrupt the `call-process' form, when it is overdued. That's why I >> have replaced it with a `start-process' implementation. > > Hmm... can you describe how this works on Posix platforms? Once > call-process forks the child process, it is AFAICS blocked inside > waitpid, so how do Emacs timers (which are the basis for with-timeout) > succeed to run at all? What am I missing? I haven't digged too much. Likely, it works under GNU/Linux because any "adb devices" call returns in time, successful or not. On MS Windows, the very first call of "adb devices" does not return in the case no Android device is connected. Once adb runs on MS Windows, any further call of "adb devices" returns in time. So there is no difference in the timeout behaviour of Emacs. But since I don't test on MS WIndows usually, it took that time to understand/fix the problem for me. Best regards, Michael.