From nobody Tue Dec 10 23:38:57 2024 X-Original-To: bugs@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 4Y7FYZ0qLDz5g32n for ; Tue, 10 Dec 2024 23:38:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7FYY3wRQz4nq2 for ; Tue, 10 Dec 2024 23:38:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733873937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mD+9ZJDaL3jqCHTEec5hydPlL18vYXOGGcx7p7I619U=; b=pXTgmdNPqKMrJ9udDqeCO+/XmaK6iD9FqCqKGNOita1MioQPhPIEyNeqKqzfLrI/8s5Rt6 zTT1NqySEmoR0curH0xh+eunnWIeSZEtUCkxWHbjReBpDWu8dZniDGPJicGOfgSP/SIS7l 2U3A1MOpnRdwkxcHKnmYBWJo6opbNR/5GYpPTr2d3/dOvOBxhFMwYXLvMV5nTLGIJiYwuS 1a64Te8kGKfo/Gq4m4jczy+Lh+g/L2bmMNHQsucwjBrIbE4QjrVn7u9wQ9axAfKr+LFtHF mqzcXCKTneDnNl+DqfqUPdCktVfD9Kqz8JZtQ8V1yXmb+zaYlgC2obUgdWV5/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733873937; a=rsa-sha256; cv=none; b=GyztIVHssb9dhgx85eIp17YJKmQk4M/vM6qn09FLbNOr7fmxf9OYocitoOprPJhTLdZBTJ v/xxN+v72tOKt5iovBtRoZ4f6EiRDjkUuon8V8qTIzBiYjLb1MvmuJ90lq32TjQj2agiEI FMoBBOklyyfslL4Y05TWceVA3nSyY0JDsUxyL/6/OIJeVdfD8OYrp7VoNiVYMLDeDYeLHN MN8ZxyOODlEsAdaAR9LWIBQg6ztAMYFL9iyY1qK2QqGUuyySwDPeP7J5wuxaHlk02tiD7k VD1KMgQwGZJ74LgoJBT9fTHxeTCqpOQ+QFB+XoQXd6RGilmYwOsaPGgQOYyBJg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y7FYY3TbGzkNw for ; Tue, 10 Dec 2024 23:38:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BANcvYA002435 for ; Tue, 10 Dec 2024 23:38:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BANcvTl002434 for bugs@FreeBSD.org; Tue, 10 Dec 2024 23:38:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277959] Refactor of usr.sbin/daemon caused regression in restart parameter Date: Tue, 10 Dec 2024 23:38:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.3-STABLE X-Bugzilla-Keywords: regression, vendor X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277959 --- Comment #21 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D57c60ec86246804a3df5c50ecfd921b39= febcfd2 commit 57c60ec86246804a3df5c50ecfd921b39febcfd2 Author: Kyle Evans AuthorDate: 2024-11-19 19:51:27 +0000 Commit: Kyle Evans CommitDate: 2024-12-10 23:02:40 +0000 daemon: tests: add a test for missed SIGTERM This is somewhaht hard to test reliably, but we'll give it a shot. Sta= rtup a sleep(1) daemon with a hefty restart delay. In refactoring of daemon= (8), we inadvertently started dropping SIGTERMs that came in while we were waiting to restart the child, so we employ the strategy: - Pop the child sleep(1) first - Wait for sleep(1) to exit (pid file truncated) - Pop the daemon(8) with a SIGTERM - Wait for daemon(8) to exit The pidfile is specifically truncated outside of the event loop so that= we don't have a kqueue to catch it in the current model. PR: 277959 Reviewed by: des, markj (cherry picked from commit 9ab59e900c1dd693b4d14285389a035e81341789) usr.sbin/daemon/tests/daemon_test.sh | 38 ++++++++++++++++++++++++++++++++= ++++ 1 file changed, 38 insertions(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=