From nobody Fri Apr 14 20:08:43 2023 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 4PynZg6SFCz44grX for ; Fri, 14 Apr 2023 20:08:43 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PynZg4htRz4G2g for ; Fri, 14 Apr 2023 20:08:43 +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=1681502923; 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=aoe6ybjunXaWUHk0w+xRjza1FkkwOBjdjjzLSaotLBE=; b=G25xu81dTSf5/anxRDqeBXBr6kyYz4e3PHQLrPruFsUNotJrBlAWVSqkXmBeesAngM4Seb hBtac+/LZT24PF8K1/3MUZN6b6jXF4Et7/DhuLmEm7O8GGy6nQVdebuOgXV0v+gNPY943n HtU+VSpqAYwwEhsTFO3fLJUNAMg+Dtge5h0x7QbgAJ3kgzsvPUBkARhfiKSF9ueY9ZvwI4 f79XC+zfJXNCBhaGUYrNcGCNVc78kOCGtw8V+2ziNAiCrmlryRwgWy4LtYKTGI1BHtqmc2 UvibFR9kBK/nbN44mpF1MMMTgHLjoiWdc7tJxl95llbbBLkzBgoVJg/c/A2w6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681502923; a=rsa-sha256; cv=none; b=kW2J5nGXEd2wJE/q+irXnEyILmiTlFLfo9tmsnSmOfwuBNJOLfyPCCWeaw1IANLua00mkZ 66a2FTLwkOoEyFhxtHr7lD3ELzkWQuAjs3uwIXYjl+pA3nIuZRmFEqmvN3gBGX15cQFO2t 2Zd9XFchN3VEiBXD2LNdY0hR0p8ohwRDh+EJluqUgVmS2GRwUg64VpeQoIeMXX2PPBOhHm 4cBENE0G5k3nl4S3zOtsKwwZWuV8eGOWf/ES1X4VPhR0UCEukTccG2NRwPohLe6sQHV2SC 3FoqQc2w3mt+Bt2PIYFd+iEHZ/8uTLkQuqmPmEZEwe31/QEddYNJ3DgZNz1dOw== 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 4PynZg3fvlzdYF for ; Fri, 14 Apr 2023 20:08:43 +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 33EK8hUI099448 for ; Fri, 14 Apr 2023 20:08:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33EK8hfG099444 for bugs@FreeBSD.org; Fri, 14 Apr 2023 20:08:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268580] Add shutdown delay to daemon(8) Date: Fri, 14 Apr 2023 20:08:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ihor@antonovs.family X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268580 --- Comment #3 from Ihor Antonov --- Nathan's motivation for the shutdown delay is to avoid race conditions cau= sed by asynchronous signal processing.=20 After https://reviews.freebsd.org/rG8935a3993219be76c7ea03e9ad4509657d08af6c was merged none of the described situations are possible. 1. Upon receiving SIGTERM daemon will propagate it to the child, then wait = for child to exit and then read everything until EOF from the pipe. 2. Same with the pid file: Child's pidfile cleanup happens only after child reported SIGCHILD, all the data was read from the pipe. At this point I do not see a compelling usecase for shutdown delay feature. --=20 You are receiving this mail because: You are the assignee for the bug.=