X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E84833858420 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1705740999; bh=1+CsMfV+GcifA0NE5uDbZn2EdRVVvPJIV29xQ1XZj3U=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=JuuyS28lcljZz+pdH2i6ZKEKRn+EE7M0yjLR4i2tHi0lgjag9LsaZi9CSNGSSJ+gT BIuaaP5/PwnFgeRWr+FXrxItAHUYbK/qiL668y3jp/iTnwaZfC6k1qzYfvvhNd5QlY pYh+V84qII9a1BQTMhMVg8AMx57GwFROsS5lEw5I= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4FACD3858D3C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4FACD3858D3C ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705740969; cv=none; b=Ujw56XvrSxRzNPIRfyzEXh6oli2Wt8RT0DpIzhXPTmm+uLKss+BO5m3gKV4AJdOyWtCaWWGp/nML1pFEwkwAr9/C+lbTCQJhnQwPjqbbCLIdX/I4wfjIZs7HaGHMPl1U1iGXPLgxlED3TEExsTvFIn4edHFMhLLdyVw7jNb82qI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705740969; c=relaxed/simple; bh=v3BERzGgg/HNVDXj5LGPOBZu508RI8b3JsuWzmpa3cE=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=rSv502KYIBqswpP+wapxM6XZl2OPorAYVN3Ku4WdwOUWwVBo158KMC9ru5SO1cIxywJmAXgUONHtBavXZ336ntm+jUMAk6ZKLoI7NyV8ALSLyhCC7IpK95/OtZfRCBKoHo3iMWjQGersHQortlQIeBMZC9wP5ZcuIHqG/YZEQOc= ARC-Authentication-Results: i=1; server2.sourceware.org X-Virus-Scanned: Debian amavisd-new at smtp02.aussiebb.com.au X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE, URIBL_SBL_A autolearn=no autolearn_force=no version=3.4.6 Message-ID: <34597e29-0602-446e-82e4-049fc1f3d9a5@shaddybaddah.name> Date: Sat, 20 Jan 2024 19:55:40 +1100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-GB To: cygwin AT cygwin DOT com Subject: Cygwin/X - Query: why invoking from cmd backgrounds? X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Shaddy Baddah via Cygwin Reply-To: Shaddy Baddah Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" Hi, I am just wondering if anyone understands why XWin detaches/runs in the background, when launched from Windows Command Prompt. This being different to when run from Mintty. Here's what happens with my Mintty invocation, which stays in the foreground: | $ XWin :1 -nolisten tcp -ac -multiwindow | Welcome to the XWin X Server | Vendor: The Cygwin/X Project | Release: 1.21.1.9 | OS: CYGWIN_NT-10.0-19045 pc-w10 3.4.10-1.x86_64 2023-11-29 12:12 UTC x86_64 | OS: Windows 10 [Windows NT 10.0 build 19045] x64 | Package: version 21.1.9-1 built 2023-12-10 | | XWin was started with the following command line: | | XWin :1 -nolisten tcp -ac -multiwindow | | (II) xorg.conf is not supported | (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information | winUpdateDpi - primary monitor native DPI x 96 y 96 ... | winClipboardProc - xcb_connect () returned and successfully opened the display. Here's what happens if I invoke tigervnc-server from Windows Command Prompt, where it stays in the forgeground and I can terminate with Ctrl-C: | C:\Users\shaddy>C:\PublicData\sw.portapps\cygwin.x86_64\bin\Xvnc :2 -nolisten tcp -ac -geometry 900x600 -SecurityTypes=None | | Xvnc TigerVNC 1.8.0 - built Dec 30 2017 22:15:31 | Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt) | See http://www.tigervnc.org for information on TigerVNC. | Underlying X server release 11906000, The X.Org Foundation | | | Sat Jan 20 19:34:43 2024 | vncext: VNC extension running! | vncext: Listening for VNC connections on all interface(s), port 5902 | vncext: created VNC server for screen 0 | MIT-SHM extension disabled due to lack of kernel support 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)? -- Regards, Shaddy -- 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