all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Bruno Victal <mirai@makinata.eu>
Cc: 63190@debbugs.gnu.org, bjc@spork.org
Subject: bug#63190: [Shepherd] Nested calls lead to a hang
Date: Mon, 08 May 2023 12:27:20 +0200	[thread overview]
Message-ID: <87fs87dson.fsf@gnu.org> (raw)
In-Reply-To: <87wn1lid69.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sat, 06 May 2023 19:26:38 +0200")

Ludovic Courtès <ludo@gnu.org> skribis:

> Bruno Victal <mirai@makinata.eu> skribis:
>
>> Original discussion (IRC): <https://logs.guix.gnu.org/guix/2023-04-29.log#180735>
>
> [...]
>
>>               (procedure
>>                #~(lambda (x)
>>                    ;; Scenario 1: using code from (gnu services herd), this hangs shepherd
>>                    #;(start-service 'dummy)  ; hangs shepherd
>
> (gnu services herd) provides a client to talk to the shepherd process.
> However, the code of actions runs in the shepherd process itself, so
> there’s no need to use the client library.  Don’t do that.  :-)

Also, the socket created in (gnu services herd) lacks SOCK_NONBLOCK so
the code above is bound to block forever.

Ludo’.




  reply	other threads:[~2023-05-08 10:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-30 15:21 bug#63190: [Shepherd] Nested calls lead to a hang Bruno Victal
2023-05-06 17:26 ` Ludovic Courtès
2023-05-08 10:27   ` Ludovic Courtès [this message]
2023-05-12 23:01   ` Brian Cully via Bug reports for GNU Guix
2023-05-13  9:45     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fs87dson.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=63190@debbugs.gnu.org \
    --cc=bjc@spork.org \
    --cc=mirai@makinata.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.