Re: Problem getting flock with timeout to work

2009-03-13 Thread Robert Klemme
Corinna, thanks for your feedback! 2009/3/12 Corinna Vinschen corinna-cyg...@cygwin.com: On Mar 12 17:44, Robert Klemme wrote: The second flock does not start the command as I expect it to be. I am referring to the man page of flock which says this about option -w: Fail  (with an exit code

Re: Problem getting flock with timeout to work

2009-03-12 Thread Corinna Vinschen
On Mar 12 15:40, Robert Klemme wrote: Hi, I searched the archives but could not find any related issue. My problem is this: I use flock with a timeout but apparently the timeout does not work, i.e. flock waits longer than specified. Script is attached. Output is here: The flock

Re: Problem getting flock with timeout to work

2009-03-12 Thread Corinna Vinschen
On Mar 12 15:40, Robert Klemme wrote: Hi, I searched the archives but could not find any related issue. My problem is this: I use flock with a timeout but apparently the timeout does not work, i.e. flock waits longer than specified. Script is attached. Output is here: This is ok,

Re: Problem getting flock with timeout to work

2009-03-12 Thread Robert Klemme
Hi again, 2009/3/12 Corinna Vinschen corinna-cyg...@cygwin.com: On Mar 12 15:40, Robert Klemme wrote: Any ideas?  Am I doing something wrong? On second thought, maybe I don't understand what you're expecting. Running the testcase on a Linux box I get this: Linux calimero 2.6.[etc]

Re: Problem getting flock with timeout to work

2009-03-12 Thread Robert Klemme
2009/3/12 Corinna Vinschen corinna-cyg...@cygwin.com: On second thought, maybe I don't understand what you're expecting. Running the testcase on a Linux box I get this: Linux calimero 2.6.[etc] -rw-r--r-- 1 corinna vinschen 0 Mar 12 16:48 lock timeout 10 started 1 3644 Thu Mar 12 16:48:48

Re: Problem getting flock with timeout to work

2009-03-12 Thread Corinna Vinschen
On Mar 12 17:44, Robert Klemme wrote: The second flock does not start the command as I expect it to be. I am referring to the man page of flock which says this about option -w: Fail (with an exit code of 1) if the lock cannot be acquired within seconds seconds. Decimal fractional values