From nobody Sat Jun 15 10:13:29 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 4W1X6L2yMNz5NWgv for ; Sat, 15 Jun 2024 10:13:30 +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 4W1X6L1wLhz4vSk for ; Sat, 15 Jun 2024 10:13:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718446410; a=rsa-sha256; cv=none; b=pE7xN/HavIR2Jpo0pEZCPYekYiEP2E348fPCT/9FxZ7SoawUEnOW6K4WMWVwtv/pItoJD2 p9ktOtDDylLCSvso6ff4P3eIBTHs0YwTMVVBXVrcmgs/KXXzyNSSzwaqigcUrToJ1DDLmR 4WWl027gCNq2tr34kAmo/J9oefesJfA7weQiTCALx34yicNkCGKvREkM0qmL99BnFIQFe8 ve6AoRsje2RxQm/+gwXO2K6MjXvSlrpuqrINboFmvy2RIpITnod7ab5tMjoWuIOwOrfuDM iVrZGcF7ADBIAh18AeZZfANGUVeTfKOhu+mH3/5ID5UfykWzAtIRt7jIpZ6mkQ== 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=1718446410; 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=NZ0/OBaE6Log1j21pffI690znben0s+peXzc+nbMyaU=; b=eKVKSCWRLRuSQsJe9SCtpCuoTBWspZN8ZngUCsgNmt/17OPeDQtuMj9xJWNX8CpeydXbwJ Usu+9KbySutdwP8r4c6KQhczr6t+JCtzwHW9uTxdjoI4gyxNQufjs8m6n0MQ1XRmZpPo9C 72pjubmMHmdNtIFF6DDIDJPZAHdkKzblqPpbg3ilDelASgwrQyq1WYvjBHYmLWTjBb/E9O ebpJfqJUUeqt8DXlQ+ii2KASkmmxLLaOxCr2F8BjST036UtRLYxlYHXQr9m73N/xpOhhNs wBMILKL4JlyDLUCCxto/i5EmgFXyW9uZm/fcP2yafBbj71Y2l3b6P2GnP0tCMQ== 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 4W1X6L1Wswz116L for ; Sat, 15 Jun 2024 10:13:30 +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 45FADUUG033171 for ; Sat, 15 Jun 2024 10:13:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45FADU4c033170 for bugs@FreeBSD.org; Sat, 15 Jun 2024 10:13:30 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 236117] /usr/sbin/daemon should support stdin,stdout,stderr redirect to files other than /dev/null Date: Sat, 15 Jun 2024 10:13:29 +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: 11.2-STABLE X-Bugzilla-Keywords: feature X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tatsuki_makino@hotmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D236117 Tatsuki Makino changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tatsuki_makino@hotmail.com --- Comment #3 from Tatsuki Makino --- Although it's also weird that I'm still using 12.4-STABLE... :) I replaced /usr/sbin/daemon with one built using the 10.4-STABLE source cod= e. This is because the behavior of standard output and standard error output h= as changed. I used to use it as follows, but the current version, which specializes in = log output, changes in content. daemon -p /tmp/daemon.pid cat /dev/somedevice > /tmp/output.dat I had to update FreeBSD to 13 or 14, but I looked for a workaround to avoid using daemon of version 10, and I got the following. daemon -p /tmp/daemon.pid -m 0 -o /dev/null cat /dev/somedevice > /tmp/output.dat Setting -m to 0 is not in usage, but it prevents the two output descriptors= of the child process from switching to the log pipe. Using the -o or -S options suppresses the output of the log to standard out= put. It seems that stdin, stdout, and stderr will now be the same as when daemon= is started. I finally got to it today :) --=20 You are receiving this mail because: You are the assignee for the bug.=