X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50A2F3858005
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1705763389;
	bh=mg1DNpY0w336mxdrNvCuJHvmmVL3BuFk+JnRPK87ibk=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=tJuzE7GZvY+8jHWpY44z5Cx7/+gUjSJ9oboar1RGJDjuclrbyT0anaICxO3fyX3sG
	 9VT1AC9uacgNuuDtbBK/ghcEgyr8HzcaQVGqZ2TN89kpAx1FuWTZDYzh/G9Rh3uVDI
	 ZW3sT0m0Opj5t/TOYHcRqxOBtsFVsGE+ZP5CWI0c=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F129B3858D39
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F129B3858D39
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705763339; cv=none;
 b=Hapxep9kPJjwZGuO03bZYScCq2n1iQFt98bZNnfj8S5Do4EivJMIFuMWpNoDnYgAgU+ynviiRgQHR8TVhmElNedSZlLFnoQBu8L4Y5ie9uDXMqzipaNCK4Oes+i8W8RrSeRyFJJz1CanVyXdq6beMMsI3jD261PznS1Kvfb2ldg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1705763339; c=relaxed/simple;
 bh=dGwNwIC20p5jSmQ/DC6BHkALOLw+TlFbSbJUNt9lJ9E=;
 h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
 b=bg8Y8s2Yw26mQXRP/BZRo4X7A3VqOSxhMaVkL2TNpvx0XBHR9WtwoKewDFD8Na8ZUB1xgwQW14o1k/3AOrjhNFZEbJBLTpUf3TYDd0P16/w2k5OJ+tYlVa6Gtr6h9tD+QnTBhu8mZcZdX0TBuEt2bg+JyermEeDmk5QEMmjDk+M=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1705763335; x=1706368135;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=1fjMMf7JyeKK4TBTUcTUEYmWJfxHOQXuRuOTStZ54Ss=;
 b=EMhlGq5uZAPMtGmJwE0HyzPNQqGpAFp/xFVAphrah7lE0R9PW4EQEd7Hh5vCU4i0qX
 TyPOFg4n4cHG1ySCJsBbkRVDO+9TfeWcXiGaL8/FtGcSqJpkjuXakGmjcQqRIQTf3t4+
 rfObfN0MKxIEg7eH4N8Hju1N5kVGrQU0Zai0tzjytl4UUBDKf9FOWw6O1z24OQAkHCIh
 OHrlFIMvY2afp9A+DtGCmnW6HpE3S4KXNpy/rF2xFIhATV3OMM2XjICDs9UO3+wLhYy3
 V2DiA7j2hTq36nAHgXH9BwfY3KNqH1jCPm09JygicRC/mgtQAqCGow8Lw6oB3upJadGz
 Ihkg==
X-Gm-Message-State: AOJu0YzPrNpEoDaYaBBjWn/F4Q5/RqXEeqHkRx7a+Dm5GpJHAUUFIGsy
 bdOgB0lsUqPc2AK2R42vdDh/z2sozRTYFu+0zSOkp/obp3RCqDrArasR9nOC
X-Google-Smtp-Source: AGHT+IEJi/qZyavrcJebfnxgXTCTUMtfLLXoVXUDdcLjPbTyGaAR9vNiwO0qYZ2DmQfUQke+0jnWRw==
X-Received: by 2002:a05:6000:8c:b0:337:9a79:a18e with SMTP id
 m12-20020a056000008c00b003379a79a18emr1006913wrx.24.1705763335346; 
 Sat, 20 Jan 2024 07:08:55 -0800 (PST)
Message-ID: <96825daf-64e4-4a17-ae5c-85724a245350@gmail.com>
Date: Sat, 20 Jan 2024 16:08:54 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Cygwin/X - Query: why invoking from cmd backgrounds?
To: cygwin@cygwin.com
References: <34597e29-0602-446e-82e4-049fc1f3d9a5@shaddybaddah.name>
Content-Language: en-US
In-Reply-To: <34597e29-0602-446e-82e4-049fc1f3d9a5@shaddybaddah.name>
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin@cygwin.com>
Reply-To: Marco Atzeri <marco.atzeri@gmail.com>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On 20/01/2024 09:55, Shaddy Baddah via Cygwin wrote:
> Hi,
> 
> I am just wondering if anyone understands why XWin detaches/runs in
> the background, when launched from Windows Command Prompt.

Hi Shaddy,
Only a guess

> But here's what happens when I run that first command line from
> Windows Command Prompt. No output and the command returns, though the
> server is running (including with an icon tray clickable):
> 
> | C:\Users\shaddy>C:\PublicData\sw.portapps\cygwin.x86_64\bin\XWin :1 
> -nolisten tcp -ac -multiwindow
> |
> | C:\Users\shaddy>
> 
> Is this special detection and handling in the main() (or whatever
> entrypoint is applicable)?

I assume you still have the log on /var/log/xwin/XWin.0.log
but it is not anymore duplicated on the terminal


> Regards,
> Shaddy

Marco


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
