From nobody Mon Nov 11 16:28:09 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 4XnFMt0wngz5cHmS for ; Mon, 11 Nov 2024 16:28:10 +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 4XnFMs658fz4FXt for ; Mon, 11 Nov 2024 16:28:09 +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=1731342489; 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; bh=IrluQK0zKPZ+PcCliMPqB5ALB1OdEhvWoxcTtc2RQw0=; b=j+uBRszDpQZfiBfoPFYxDclooROl0KhrTPdfiUvi3iqw+GX1aCuNO25Fro9dCXA6x4WRhW rnfO3C6u4RbkoBKDGGnIoeZd/5BEAfTVLX7BMX1CGE0c6htU9F12L4kgcbecb9ctCUDQHs DVlHJZabzOOh/4nIBqb5/X7U3rLMzaMCLbtlw2fF5mKq7bJhKHIhRZD/xpfMLTkBt0+3Ja 3LFh3Kv1yfz3UytDt04peCw9MCng61ebJDizIH/WfZmxNWNTbT8DLLQPcBBPE637SXAzyX 884wtWLCEK9c0rCnLLFYyqGPstISMzDYUDzKsgi4STM+QEcB2IUmwXNfXrpMYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731342489; a=rsa-sha256; cv=none; b=DSDXCwXgbbOMSdI8hY1A6MhvDmXZ+Xs4Tm1HRP9CkGJLKmyFssmYFQdWkMMDRZFiItKhOl fnvksOR1ReMucBCoBinL/To2vuxCzW0QivMj2Qxfc6Sro6UBsgcX9FKVx/ys/wrMn5NwzW UKAdK9tECHQjNKEPC4xi0y4pF/DuMycbWSS5WR1OtbcdmssMT7YP4NRZnfMkqR0z4jtj1Z NiT1iWXpv0pYSMI7pRQ7uul65GAx6A1SykHLM+AUCY+hWf1RSmUj+k77C7S4Sm3gMYZSN1 WdGs1PBnrmHNXY7IlVUyqZMCq3lp7UTbOo/6sDUW1T9ZGjB3qqH8jjV50iDguQ== 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 4XnFMs5hXvzZ1T for ; Mon, 11 Nov 2024 16:28:09 +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 4ABGS9so083839 for ; Mon, 11 Nov 2024 16:28:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ABGS9Q2083837 for bugs@FreeBSD.org; Mon, 11 Nov 2024 16:28:09 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 282694] utility `daemon(8)` never exits (process SIGTERM) if child process restarts indefinitely Date: Mon, 11 Nov 2024 16:28:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@vlapan.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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=3D282694 Bug ID: 282694 Summary: utility `daemon(8)` never exits (process SIGTERM) if child process restarts indefinitely Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd@vlapan.com Created attachment 255099 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D255099&action= =3Dedit basic minimal rc.d script for illustration purposes Hi there, attachment `testd.sh` minimal rc.d script that starts `daemon` for `env` wh= ich always exits (just to illustrate), `-r` restarts `env` but `daemon` doesn't reacts to SIGTERM in that mode which is the signal sent on `service testd stop`, so it's hanging on waiting for PID indefinite: ``` ~# service testd onestop Stopping testd. Waiting for PIDS: 19035^C ``` think there is a race condition for when `daemon` receives SIGTERM but in a state when there is no child yet --=20 You are receiving this mail because: You are the assignee for the bug.=