From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52628 invoked by alias); 29 Jan 2020 22:49:02 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 52516 invoked by uid 89); 29 Jan 2020 22:48:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL autolearn=no version=3.3.1 spammy=H*F:U*cygwin, H*r:sk:smtp1-g, H*RU:sk:smtp1-g, HX-Spam-Relays-External:sk:smtp1-g X-HELO: smtp1-g21.free.fr Received: from smtp1-g21.free.fr (HELO smtp1-g21.free.fr) (212.27.42.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 Jan 2020 22:48:45 +0000 Received: from [IPv6:2a01:e34:ee03:44f0:a128:99b1:aa48:63fd] (unknown [IPv6:2a01:e34:ee03:44f0:a128:99b1:aa48:63fd]) by smtp1-g21.free.fr (Postfix) with ESMTPS id 8EAF0B00568; Wed, 29 Jan 2020 23:48:37 +0100 (CET) From: Denis Excoffier Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Searching how to replace dosfilewarning functionality Message-Id: <87A8C69F-2350-4945-981A-2CD2F38E9F5F@Denis-Excoffier.org> Date: Wed, 29 Jan 2020 22:49:00 -0000 Cc: Denis Excoffier To: cygwin@cygwin.com X-SW-Source: 2020-01/txt/msg00301.txt.bz2 Hello, I see (https://cygwin.com/ml/cygwin-cvs/2020-q1/msg00042.html) that the Cyg= win code that handles the dos_file_warning option will be removed soon. I use this option. I don=E2=80=99t use it directly (for DOS paths) but as a= signal to be sure that no Cygwin process remains present on my system. Thi= s is useful in some cases (re-reading /etc/passwd, /etc/nsswitch.conf occurs only for t= he first process) but also mainly to make sure that if my PC uses memory or= CPU at 100%, Cygwin is not the culprit (since no Cygwin process remains loaded). I don= =E2=80=99t use cygrunsrv or equivalent. I do this: 1) I replace "bool dos_file_warning;" with "bool dos_file_warning =3D true= ;", and recompile cygwin1.dll. This has to be done at a regular basis, at e= ach new version or snapshot. 2) In my .cshrc i install "echo \\ /nonexistent*" (or something more clever= , like "echo \\ /nonexistent* |& head --lines=3D-6"). 3) When I login, if I see "Cygwin WARNING:", this means that apart from the= current process, there is no other Cygwin process in my system. An importa= nt feature is that the "Cygwin WARNING" message never appears afterwards (i= n subsequent shells, like in xterm=E2=80=99s). 4) If I exit from a shell that has displayed "Cygwin WARNING:", I=E2=80=99m= sure that no Cygwin process remains (I know that my .cshrc is clean about = process creation etc.). Is there any alternative to this almost-functionality if this code is remov= ed? Regards, Denis Excoffier. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple