From unknown Fri Jun 20 07:16:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#45314 <45314@debbugs.gnu.org> To: bug#45314 <45314@debbugs.gnu.org> Subject: Status: =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?discover=E2=80=99?= polls Reply-To: bug#45314 <45314@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:16:39 +0000 retitle 45314 =E2=80=98guix discover=E2=80=99 polls reassign 45314 guix submitter 45314 Ludovic Court=C3=A8s severity 45314 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 18 12:10:23 2020 Received: (at submit) by debbugs.gnu.org; 18 Dec 2020 17:10:23 +0000 Received: from localhost ([127.0.0.1]:39827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqJGo-000772-PH for submit@debbugs.gnu.org; Fri, 18 Dec 2020 12:10:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:58940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqJGg-00076m-2s for submit@debbugs.gnu.org; Fri, 18 Dec 2020 12:10:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqJGf-0004AH-C5 for bug-guix@gnu.org; Fri, 18 Dec 2020 12:10:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35914) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqJGd-00079o-VP for bug-guix@gnu.org; Fri, 18 Dec 2020 12:10:13 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53508 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kqJGY-0002Vu-Vp for bug-guix@gnu.org; Fri, 18 Dec 2020 12:10:11 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: =?utf-8?Q?=E2=80=98guix_discover=E2=80=99?= polls X-Debbugs-Cc: Mathieu Othacehe X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 Frimaire an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 18 Dec 2020 18:10:04 +0100 Message-ID: <87a6ub9h1v.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! =E2=80=98guix discover=E2=80=99 polls with 100ms intervals: --8<---------------cut here---------------start------------->8--- 18:00:57 poll([{fd=3D14, events=3DPOLLIN}, {fd=3D16, events=3DPOLLIN}], 2, = 100) =3D 0 (Timeout) 18:00:57 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) =3D 0 18:00:57 poll([{fd=3D14, events=3DPOLLIN}, {fd=3D16, events=3DPOLLIN}], 2, = 100) =3D 0 (Timeout) 18:00:57 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) =3D 0 18:00:57 poll([{fd=3D14, events=3DPOLLIN}, {fd=3D16, events=3DPOLLIN}], 2, = 100) =3D 0 (Timeout) 18:00:57 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) =3D 0 18:00:57 poll([{fd=3D14, events=3DPOLLIN}, {fd=3D16, events=3DPOLLIN}], 2, = 100) =3D 0 (Timeout) 18:00:57 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) =3D 0 18:00:57 poll([{fd=3D14, events=3DPOLLIN}, {fd=3D16, events=3DPOLLIN}], 2, = 100) =3D 0 (Timeout) 18:00:57 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) =3D 0 18:00:57 poll([{fd=3D14, events=3DPOLLIN}, {fd=3D16, events=3DPOLLIN}], 2, = 100) =3D 0 (Timeout) 18:00:57 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) =3D 0 18:00:57 poll([{fd=3D14, events=3DPOLLIN}, {fd=3D16, events=3DPOLLIN}], 2, = 100) =3D 0 (Timeout) 18:00:58 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) =3D 0 18:00:58 poll([{fd=3D14, events=3DPOLLIN}, {fd=3D16, events=3DPOLLIN}], 2, = 100) =3D 0 (Timeout) --8<---------------cut here---------------end--------------->8--- This comes from =E2=80=98avahi-browse-service-thread=E2=80=99 in (guix avah= i) and its 100ms #:timeout. How about the change below? Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/avahi.scm b/guix/avahi.scm index aa90a5cdd4..132e42f268 100644 --- a/guix/avahi.scm +++ b/guix/avahi.scm @@ -89,13 +89,19 @@ when STOP-LOOP? procedure returns true." (close-port socket) ip)) +(define never + ;; Never true. + (const #f)) + (define* (avahi-browse-service-thread proc #:key types (ignore-local? #t) (family AF_INET) - (stop-loop? (const #f)) - (timeout 100)) + (stop-loop? never) + (timeout (if (eq? stop-loop? never) + #f + 100))) "Browse services which type is part of the TYPES list, using Avahi. The search is restricted to services with the given FAMILY. Each time a service is found or removed, PROC is called and passed as argument the corresponding @@ -167,4 +173,6 @@ when STOP-LOOP? procedure returns true." client-callback))) (and (client? client) (while (not (stop-loop?)) - (iterate-simple-poll poll timeout))))) + (if timeout + (iterate-simple-poll poll timeout) + (iterate-simple-poll poll)))))) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 20 04:43:11 2020 Received: (at 45314-done) by debbugs.gnu.org; 20 Dec 2020 09:43:11 +0000 Received: from localhost ([127.0.0.1]:43702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqvF8-0004km-Md for submit@debbugs.gnu.org; Sun, 20 Dec 2020 04:43:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqvF5-0004kU-M6 for 45314-done@debbugs.gnu.org; Sun, 20 Dec 2020 04:43:09 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44734) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqvF0-00042p-3S; Sun, 20 Dec 2020 04:43:02 -0500 Received: from [2a01:e0a:19b:d9a0:ac2a:8ddd:1dd0:ed79] (port=39114 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kqvEz-0008UA-LE; Sun, 20 Dec 2020 04:43:01 -0500 From: Mathieu Othacehe To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#45314: =?utf-8?Q?=E2=80=98guix_discover=E2=80=99?= polls References: <87a6ub9h1v.fsf@inria.fr> Date: Sun, 20 Dec 2020 10:43:00 +0100 In-Reply-To: <87a6ub9h1v.fsf@inria.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?= =?utf-8?Q?'s?= message of "Fri, 18 Dec 2020 18:10:04 +0100") Message-ID: <87czz4g6e3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45314-done Cc: 45314-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hey Ludo, > How about the change below? I think it looks nice! I pushed it as f9978346e73359ac1d8b88c9ed874edc7225582b. Thanks, Mathieu From unknown Fri Jun 20 07:16:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 17 Jan 2021 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator