From nobody Tue Feb 10 06:27:16 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556021596; cv=none; d=zoho.com; s=zohoarc; b=hl8apcxRyYIpBdW8x3FKwRFZXKm0D60arKRU7W4SYldMt7aNiZz7KmN5pGsDxkqGtXNFN9jwMCZuPsKo1Tb6b1q5V8ljKt+i68Bo/APBW7vhYFvUlQxF4FHTk9yRgbYZwy1iEu0Do9BKDetEIu8jTpkwYRiPPG1Ou6250oLHURM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556021596; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=xccpHTTUYboZPKSdehmy/+e7yK74K/mrX0p5kyjOS5c=; b=afnxKTytapHntabcalrzivGcYJl35jbrjJgGMZ6dm9tpcEz/l0VxmSgEHywtf/eEGDpm140W/gSqK+ZCgV2r7rwCxpMIzXDwNARtkyCSX1TBVK7h7/MZ1dVUiF3D3Hy08KNfp3htlT+d//urAFBm8ydDeFrsZrA33w9TqYv+2aU= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556021595998343.5957988207516; Tue, 23 Apr 2019 05:13:15 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hIuHF-0006Om-IR; Tue, 23 Apr 2019 12:11:57 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hIuHE-0006OW-H2 for xen-devel@lists.xenproject.org; Tue, 23 Apr 2019 12:11:56 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id faed07e0-65c0-11e9-ac16-93d415d302d6; Tue, 23 Apr 2019 12:11:54 +0000 (UTC) X-Inumbo-ID: faed07e0-65c0-11e9-ac16-93d415d302d6 X-IronPort-AV: E=Sophos;i="5.60,385,1549929600"; d="scan'208";a="84180812" From: Ian Jackson To: Date: Tue, 23 Apr 2019 13:11:37 +0100 Message-ID: <20190423121139.25996-2-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190423121139.25996-1-ian.jackson@eu.citrix.com> References: <20190423121139.25996-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 1/3] ts-syslog-server: --no-stdin option X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Useful when running on a tty interactively. Signed-off-by: Ian Jackson --- ts-syslog-server | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ts-syslog-server b/ts-syslog-server index 1234bb7d..06a07adf 100755 --- a/ts-syslog-server +++ b/ts-syslog-server @@ -28,6 +28,13 @@ use Socket qw(PF_INET SOCK_DGRAM INADDR_ANY =20 tsreadconfig(); =20 +our $use_stdin =3D 1; + +if (@ARGV && $ARGV[0] eq '--no-stdin') { + $use_stdin =3D 0; + shift @ARGV; +} + die if @ARGV && $ARGV[0] =3D~ m/^-/; =20 logm("starting syslog server ..."); @@ -42,7 +49,8 @@ $myaddr =3D inet_ntoa($myaddr); =20 store_runvar('syslog_server',"$myaddr:$port"); =20 -my @fhs =3D qw(S STDIN); +my @fhs =3D qw(S); +push @fhs, qw(STDIN) if $use_stdin; =20 foreach my $fh (@fhs) { my $fl =3D fcntl($fh, F_GETFL, 0) // die $!; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel