X-Spam-Check-By: sourceware.org Date: Tue, 26 Dec 2006 12:21:29 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Updated cygwin dlls cause unnecessary reboot on NT Message-ID: <20061226172129.GA10452@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <458EE598 DOT 3010404 AT aim DOT com> <458F31B1 DOT 6050804 AT byu DOT net> <458F81CC DOT 3090500 AT tlinx DOT org> <458FDC4E DOT 9040505 AT cygwin DOT com> <458FEC2E DOT 70705 AT tlinx DOT org> <45902BC4 DOT 50803 AT tlinx DOT org> <4590BD4E DOT 5020905 AT cygwin DOT com> <45910426 DOT 9030603 AT tlinx DOT org> <459133CB DOT 3080102 AT ukf DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <459133CB.3080102@ukf.net> User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Tue, Dec 26, 2006 at 02:38:03PM +0000, Max Bowsher wrote: >Linda Walsh wrote: >> The fix I proposed has nothing to do with the cygwin1.dll. As has >> been covered previously, since cygwin1.dll and a few other libs are >> part of the cygwin "kernel", special handling may be needed to upgrade >> those dll's. What can be fixed is the installation of .exe and .dll >> files for >> applications. The behavior of those should be the same as replacing >> in-use .so's and executables on *nix. > >I believe there is a critical element you have missed. > >In order to perform the rather miraculous emulation of fork(), Cygwin >needs to reload all the same DLLs that are operating in one process into >another newly created process. Updating the DLL files on disk whilst >processes are using them prevents this from happening. > >For a simple demonstration of this: > >* Start a bash shell >* Rename any of the DLLs used by bash to something else >* Try to execute any non-builtin command >* See the fork failure message > >Could this be worked around? Perhaps. >Is it likely to happen? No, the benefit-to-work ratio is too low. Thanks for adding a piece of the puzzle, Max. This is a reason why just renaming an in-use dll is not going to work and creation of .new files is required. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/