From nobody Fri Oct 06 16:45:09 2023 X-Original-To: dev-commits-src-all@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 4S2Dn12p4Qz4x3cp; Fri, 6 Oct 2023 16:45:09 +0000 (UTC) (envelope-from git@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 4S2Dn12HJmz4SBQ; Fri, 6 Oct 2023 16:45:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696610709; 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=VA04pzFro5bq44lmiconX3kwNgBUco2jMwAjV9NQkCI=; b=LZrcCun3JP/PuAkdi/B71Xv68ingZjrLU9H92PFo3o9gkTRqn7wQzuoVs2fWwnM/aVZTXh 8HTa0OwWyv70JeLGd6BGTl9Voq0M9Fi+a2r59I7n6tGFpzR8JwBpFUpbR5rJwyEO2u92MG uEoUz08xX6yoDx25NfcHmET2iA74lL1Mq028vkqkQbdRCq12mG/hUhoZ+4WUJ+JdV+ygxU rZ9L1GYKtPNjiW3z2trrlQPyiHVi0hJZHibZsxJHT1Ue1wfhXJtX89nJqt7eZlkacex4Cj /7Ew6wwpVnbcvi5W0f+dk98vPdpdzqFOjKejUXVxBzHmHSmKn5eKARG+YCGDEg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696610709; a=rsa-sha256; cv=none; b=yGZjW7HXCjttzvWDb6BhU7q0l5LQ1ioNT89FY+SP8tq01bREpsYpWFAC19pq0mfxU/chf4 GAqDDMdP2bOtHwGJ2HaVxL6G9yuJ0uxorKfF9d/uaLfRoVmPg4pQANc7vsukZmw+E+pfyv cuu9pdPo8/fELGZ20Vo1QlksXA1cMiNIHxbB79p+woHd/GDNZAd7lchg5MUiPpR+rUjI9g AeB1IiKe8zHzgKI/+TASK2kRZpJGojJxg9NrgNp9rBx506UlsCN11rZwtAa7nSEXGhPW/4 iICdcduEe869c52atZZLHWb0ixfdwUcT8M9Zm0zvT2G1owlVhKI7AV6kaqpNTQ== 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=1696610709; 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=VA04pzFro5bq44lmiconX3kwNgBUco2jMwAjV9NQkCI=; b=hgFVEGLyDQf1nPADz0dn/dPyfLWPiUss2HCtarW/Kl83S5/NolNGGAE9rOYoJCWbQkfXtK dHo3gSLyU2zVsamoDszLUKNyWyUZ4VaL/NnIY2u8QUOfpe8XeDggldnDljmoiQF0cd3vBv p/fDBU07P+ZyoKqOrTE6+OmwRdJimbz5xvK8PIjvf/ev8X5cLfUIZWSNNDxBEdmy0hd1qB NFVKO59SWscVEu8gwInxZMuVrts++XZl2sp8PEbZurwT5jnayIPSXVpVrWceSmPeihtB9K gVbRQOVgar895xeMHztTbpbfYQiyMreiwfx6XXm0GuUwvB8JgDWZDSApaVx/jA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4S2Dn11NHxzw3D; Fri, 6 Oct 2023 16:45:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 396Gj9GR026913; Fri, 6 Oct 2023 16:45:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 396Gj9PH026910; Fri, 6 Oct 2023 16:45:09 GMT (envelope-from git) Date: Fri, 6 Oct 2023 16:45:09 GMT Message-Id: <202310061645.396Gj9PH026910@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: cec8e6ba64cc - main - daemon: Disable stdio buffering. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cec8e6ba64ccab7fb0d9fa531ebad9228233334d Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=cec8e6ba64ccab7fb0d9fa531ebad9228233334d commit cec8e6ba64ccab7fb0d9fa531ebad9228233334d Author: Dag-Erling Smørgrav AuthorDate: 2023-10-06 16:44:52 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-10-06 16:44:52 +0000 daemon: Disable stdio buffering. The daemon utility already does its own buffering and retransmits its child's output line by line. There's no need for stdio to add its own buffering on top of this. MFC after: 1 week Sponsored by: Modirum MDPay Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D42111 --- usr.sbin/daemon/daemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/daemon/daemon.c b/usr.sbin/daemon/daemon.c index dfbb609ce10d..65e6bb7ca190 100644 --- a/usr.sbin/daemon/daemon.c +++ b/usr.sbin/daemon/daemon.c @@ -420,6 +420,7 @@ daemon_eventloop(struct daemon_state *state) close(state->pipe_fd[1]); state->pipe_fd[1] = -1; setproctitle("%s[%d]", state->title, (int)state->pid); + setbuf(stdout, NULL); while (state->mode != MODE_NOCHILD) { ret = kevent(kq, NULL, 0, &event, 1, NULL);