From nobody Wed Mar 20 01:07:52 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 4Tzr6w73xCz5Fxwm for ; Wed, 20 Mar 2024 01:07:52 +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 4Tzr6w5ddvz4YXY for ; Wed, 20 Mar 2024 01:07:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710896872; a=rsa-sha256; cv=none; b=uK7EEk9YZ0xSFhdKqVan9A71pvdsIF0ZXClrDZAJbqh6omltIyX83O6i/pXyJA0AoEOtqK +evSJrwqUeYuUHA3AbHCx7zI+0WncDlkqerlWXcMhKJ0p9uxG0fzp3lu3wu589QI3lk12Y HwKgGfxOx+TJMXl+GuaFrwaudTNbNXLKZ5J/QqejPpzCJk8s603HS4oIreQoo0vZ2d5mLX EdCfxeFLVIHNpqvS5b03DkJQ/DBaTQIGz2glg3szjI0Fo/VKeFV/VXIiPBfh860jM3PKbf 69AaRFhnXEAtvuDvBT6Jli89m+DW0vGCO/+Qsrd6Pz1uaE24edNRvtwtVDTSeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710896872; 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=N6DyOinW9D7Y1WhOt3VWdIC0Qu+oTTfd3VwTxf9cQis=; b=fWwR2lNv++G7NejEFdDzAltklG0fVdI9R5FN7/d18X9d6oUUTX0jfN0Fkn8SrN+nKcfUtb T6FLgTx7G2Ik320GO7KtbxwZNP7tOHKTGHR2YvxRY6ZZSwTp4X/Nm4rr/1SJ6TV1E85857 fA3Ti+QIPaTJlkGUP1Ch67NY9ulVZjXdUvA5POgiNbqRj2VToqMZ9R6CNdkQKhFwk2Daph NGx42AHFga25h5pSHX5eZJphZwTg56BCcPUuLrMgHSLq63T8pSR+IwfXeswp8I2QdGyDwT kGtWj7MN+6RMqVJGd5LNLO2kHhqhinC4ApcsEdky8pXwxH/rQmXhC6JaROr+DQ== 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 4Tzr6w5D5CzW01 for ; Wed, 20 Mar 2024 01:07:52 +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 42K17qEI093296 for ; Wed, 20 Mar 2024 01:07:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42K17q29093293 for bugs@FreeBSD.org; Wed, 20 Mar 2024 01:07:52 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 277764] daemon(8): high CPU usage after stopping and continuing child process Date: Wed, 20 Mar 2024 01:07:52 +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: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277764 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D8eaa6be80d6aef6a118fa854a860bfdae= b7ed753 commit 8eaa6be80d6aef6a118fa854a860bfdaeb7ed753 Author: Konstantin Belousov AuthorDate: 2024-03-18 08:44:39 +0000 Commit: Konstantin Belousov CommitDate: 2024-03-20 01:07:00 +0000 daemon(8): handle case of waitpid() returning without exited child Not checking for either WIFEXITED(status) or zero result results in never finishing the loop. PR: 277764 Reviewed by: kevans (previous version) Discussed with: Daniel Tameling Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44401 usr.sbin/daemon/daemon.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=