all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Brian Cully <bjc@spork.org>
Cc: 63190@debbugs.gnu.org, Bruno Victal <mirai@makinata.eu>
Subject: bug#63190: [Shepherd] Nested calls lead to a hang
Date: Sat, 13 May 2023 11:45:51 +0200	[thread overview]
Message-ID: <87h6sg1s4w.fsf@gnu.org> (raw)
In-Reply-To: <87h6shduaw.fsf@psyduck.jhoto.kublai.com> (Brian Cully's message of "Fri, 12 May 2023 19:01:08 -0400")

Brian Cully <bjc@spork.org> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> (Whether that leads to a deadlock depends; at first sight, I’d say
>> there’s no reason for this to deadlock in general, but you can of
>> course
>> end up with a logic bug like A starts B, which spawns a client to
>> start
>> A, which doesn’t start because it’s waiting for B.)
>
> It's been a while since I looked at this, but my rough recollection is
> the deadlock occurs because shepherd can only process one request over
> its socket at a time.

That’s not the case in 0.9: it can process several requests
concurrently.  However, as I wrote in a followup message, the client
socket created by (gnu services herd) lacks SOCK_NONBLOCK, which can
thus block the process on reads and writes.

Ludo’.




      reply	other threads:[~2023-05-13  9:47 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
2023-05-12 23:01   ` Brian Cully via Bug reports for GNU Guix
2023-05-13  9:45     ` Ludovic Courtès [this message]

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=87h6sg1s4w.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.