delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/20/11:21:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT net>
Subject: Re: occasional problem: .bash_profile permission denied
Date: Thu, 20 Sep 2007 10:19:27 -0500
Lines: 30
Message-ID: <fcu31v$n8q$1@sea.gmane.org>
References: <387E9FC1619C0849BA8934938037E54F12AD4F AT sv-muc-004 DOT venyon-mail DOT local>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0
In-Reply-To: <387E9FC1619C0849BA8934938037E54F12AD4F@sv-muc-004.venyon-mail.local>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Ronald Fischer wrote:
> I configured my system so that it automatically starts Cygwin
> during boot time via the Windows autostart feature, by using
> startxwin and Cygwin/X to start several xterm and rxvt terminals,
> and also to start one bash shell in plain Cygwin (outside X).
> 
> Occasionally, one or two of the shells started that way complain
> 
>   bash: /cygdrive/h/.bash_profile: Permission denied
> [snip]
> My first idea was that perhaps that it could be a race condition between
> Windows starting the Autostart applications and mounting the network
> drives, because my $HOME is on a network drive. But this would not
> explain the  following: When I start several xterm's from my
> startxwin.bat, it happens sometimes that the "permission denied"
> error occurs on one of the terminals started *later*, while the
> earlier started ones don't have this problem.

I'm not sure that means anything, since it could happen that you start 
one xterm, it gets preempted to run your .bat, which starts another 
xterm that tries to read the not-yet-mounted home drive, and then the 
drive is mounted and the first xterm gets scheduled again.

Does adding a sleep to your .bat help?

-- 
Matthew
"Passion is inversely proportional to the amount of real information 
available." -- Benford's Law of Controversy
http://en.wikipedia.org/wiki/Benford%27s_law_of_controversy


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019