From nobody Thu Jan 08 03:42:59 2026 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dmrN2201hz5Z1JW for ; Thu, 08 Jan 2026 03:43:14 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dmrN15mnKz4Q1D for ; Thu, 08 Jan 2026 03:43:13 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-b7ce5d6627dso556050966b.2 for ; Wed, 07 Jan 2026 19:43:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767843792; x=1768448592; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=B2jtu28XVnpbZbLleQlz6/CDGutuVvs+A/47MR25X4I=; b=ahiKM/KOAloF4QZfyA82JeZ7a3twMO+U9kTbWwGvGzlz6gR9c0KO6y3YrodmTYyxJK RvawHvbi+OmVJf8cXuXbUUNjxw3TXook4ABdlfgZrCdPDlXW9QnEJg0bEMpBG0hOd+8w 6iFnTi7b10bIEB4csKHBAMckHDMgyRoGvAb4OB/BTqxIPLg+M39LrHj7zX0QoR3YD9nT RdiSVc092iBiySRQ1T0V0/1MIOo43lksoLD5NvVZHJwt70rKIkd3Of1y1itUqZaesK7e 9hOf9sSNorUo0rARMuiloouPjRniKO55vFMYnkf3BeFnncfrL3PqdqQcj1GdMH2QhDJZ XVnA== X-Forwarded-Encrypted: i=1; AJvYcCW0Od6wymfaUdNY479edNzoeGAoEcqupGSQQIp9cf5tccb059qi1f7IDDf1LlVGYPPlWynKGnu8A/v3Uai14qs=@freebsd.org X-Gm-Message-State: AOJu0YzZPhW/xCboCNw8vA8Grx1fz889m0VZps/vUK9GDAszTgc+J9jq ISNtj4Dah9mKsqmg9hxxX1MuQBzPQvAp64EvfVsBflvVzfwhxuIdXgk+tLm15vhGRKsj5fpaxUA IgsXNGFelozzwN8/YlTTg2HCQtV9tK5c= X-Gm-Gg: AY/fxX6tnctDqeN6eVkQCgoailVrxR5EWB6Ozm6fL+0avkT3I4jCvfZoH5P4PXkprmB GB74cs8bMnm0ZCPiI3mXnLPPLyR6hftD5Whq/bSh4Kcrr3ziovS5BQhjvkX9QmzwRi3xdjXp9P9 tGWsSHRpM6WfGMRtKDebJ8r33Yrrka2eXHLWq9bFkAAN7pkyGgP0P/xttRS+ngUQAGSZUn/qXL7 VlkJreI8CzbdweB+IH0PHdP2ftLdJHyMVRz8Frop3ce6XJVHBsoSLaJlkC/3mVK9+6HYp0= X-Google-Smtp-Source: AGHT+IHBVlVv1t0G8K1CngZUIDW4z4o/DSqlOzyVC7D/Z2gOpzlal1ov4mjGJA4whe57YQcoGhf0gwmmtfWgOaET/+M= X-Received: by 2002:a17:907:3f28:b0:b75:8b9f:de3a with SMTP id a640c23a62f3a-b844521305bmr492419466b.59.1767843791503; Wed, 07 Jan 2026 19:43:11 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <01AC8C85-DE8E-44F9-85FD-6E2514DDE96B@FreeBSD.org> <8fa41730-7659-4038-a5e2-fae13e96d410@app.fastmail.com> In-Reply-To: <8fa41730-7659-4038-a5e2-fae13e96d410@app.fastmail.com> From: Alan Somers Date: Wed, 7 Jan 2026 20:42:59 -0700 X-Gm-Features: AQt7F2pKTWor-7KUfMQ8PgzojIj7ko2oxjtt2z7Xwad6YK2uPam4RN7qj_wUS2g Message-ID: Subject: Re: Is anybody working on extending procdesc support to rfork? To: Rob Norris Cc: Konstantin Belousov , FreeBSD Hackers , arch@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dmrN15mnKz4Q1D On Wed, Jan 7, 2026 at 8:02=E2=80=AFPM Rob Norris wr= ote: > > On Thu, 8 Jan 2026, at 1:40 PM, Konstantin Belousov wrote: > > That's fair. The bug report references discussion at > https://lists.cam.ac.uk/pipermail/cl-capsicum-discuss/2015-May/msg00012.= html > which seems to be no longer available. Does anybody have a pointer > to it? > > > Looks like a change to the mailing list archive software. I guess this or= something in the same thread. > > https://lists.cam.ac.uk/sympa/arc/cl-capsicum-discuss/2015-05/msg00012.ht= ml > Thanks for finding that! There's two important pieces of information there= : * "we reserve the PID until all of its PDs had been closed". If that's true, then it's possible to use wait4 with process descriptors race-free. That would be good enough for my current purposes. A proper pdwait4() would still be useful for capability-mode processes, however. * Ed Shouten already wrote a pdwait(3) on top of kqueue (though the link is dead). I might be able to use that. I'll investigate both of the above points tomorrow.