From nobody Wed Dec 13 20:07:01 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 4Sr62Y445Jz54FS7; Wed, 13 Dec 2023 20:07:01 +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 4Sr62Y3BQtz4bhG; Wed, 13 Dec 2023 20:07:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702498021; 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=Aj6YArpLYb+5COf/N7bZ14Gw8/OOSo882vVTRDq7uQc=; b=eofxFEpGFy/yRGxqbYcppFaRMbE2x8q4cQ3ptAaNgd+WGClcT8A9w8iHWr6WvEfM6Fj58V fzXd59izPNw5iIFxCo9Vp+YP+jM2zhEhc0F7SgW8+TW8oNshrK7gfYvUH5jzCH1bLI81Ba bZ9mC26Kf8GJ4XxyCUcBjhWqb+zCavy9Ao66Og9VJGHJv94SVANgpKJgP6s5cb9NF3EQcE UTzeYHMiSeq4Y3qr4QpcDmlAagNcePvHY3EoaGnQeqX3/+4lg9Qyg5DyNo16H1QoFQ0XeV rzD5pnvN8UzEVSup0bwCpytmi7dzbGQZmVge5GSyMQcC/RfhsP0txM1unXcO7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702498021; a=rsa-sha256; cv=none; b=Wa34cNs4O0H9Y7sCBMkhePKZVacr7IT9jbb+wrBxf2OZP/MW5E/OMmHu4aK8UufPVURlth hyeE3Ybzh7mA0t92neZ6fYxHLHDrvea+IiDnx0bD3srZxQPPoca7G/tiR+uSPpCkYuNB6n unnigule0LATiuiWkQB6RjP73etEaKguiZWijX1Ziv0doPvENeM9O31nrN0XLLYW50dmIk Z1JYZlGTpxBDeKwTHiE5tYyPLJysLQCh/6kas1WfLZ6zxEd5YgJfZc9TvuAv/u4n2HNyXS N0aWWYvWTKFsIb+yRcZclJPYEWW81Zl0DpHYihLYd6TYElOIiGEKSk9kfKYaXA== 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=1702498021; 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=Aj6YArpLYb+5COf/N7bZ14Gw8/OOSo882vVTRDq7uQc=; b=Si4EztaKIN5GmSReaMathu7Mp2aG6LqnN9k/ztx607OVplWJjKMQvN8jUwaL25QyOSuFA+ EV7WN+8Uy2JZALOJ9OIsGoHIug8+eFfBQ+3G+70Sl7KL1HD93EA7dgocZ19FElEo2S5r/3 iWHoOhWn0ZUjYcS5aPhoT9mg3RqgY7FqUTsZfeNtFIu9p51COXLLSs+082OnEAwlIJdYom XR8v0b3cZXbt9PwolMUCsf/lIYlbTxNDu4V30mzzmP2YfhGysGk060Im0lbG5+ahO8+1s8 UCQsxEQDxMgTRFEcT7MPsviWjRlwSia9DM6ac+0lvDQXIt6A9p28Y1i3hISPkQ== 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 4Sr62Y26yqz1C3J; Wed, 13 Dec 2023 20:07:01 +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 3BDK71Zh088042; Wed, 13 Dec 2023 20:07:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BDK716e088039; Wed, 13 Dec 2023 20:07:01 GMT (envelope-from git) Date: Wed, 13 Dec 2023 20:07:01 GMT Message-Id: <202312132007.3BDK716e088039@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: c7a0acd832d9 - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: c7a0acd832d98b889aca95d336b19410b0517178 Auto-Submitted: auto-generated The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=c7a0acd832d98b889aca95d336b19410b0517178 commit c7a0acd832d98b889aca95d336b19410b0517178 Author: Dag-Erling Smørgrav AuthorDate: 2023-10-06 16:44:52 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-12-13 16:23:57 +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 (cherry picked from commit cec8e6ba64ccab7fb0d9fa531ebad9228233334d) --- 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);