Web lists-archives.com

RE: flock: cannot set up timer: Invalid argument




Thank you.

I can confirm using cygwin1-20190120.dll solves the problem.

//Daniel

-----Original Message-----
From: cygwin-owner@xxxxxxxxxx <cygwin-owner@xxxxxxxxxx> On Behalf Of Yaakov Selkowitz
Sent: den 20 januari 2019 06:10
To: cygwin@xxxxxxxxxx
Subject: Re: flock: cannot set up timer: Invalid argument

On Fri, 2019-01-18 at 07:11 +0000, Daniel Abrahamsson wrote:
> After upgrading from util-linux 2.25.2-2 to 2.32.1-1, flock started producing the following error message:
> 
> flock: cannot set up timer: Invalid argument
> 
> This is the test script I am using (which works under 2.25.2-2):
> 
> #!/bin/bash --login
> (
>     echo "Waiting for file lock”
>     flock -x -w 300 200 || exit 1
>     echo “Success”
> ) 200>test.lock
> 
> Ideas?

This appears to be fixed in the latest snapshot.

--
Yaakov



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