[Patch]: Create Global Privilege

Corinna Vinschen cygwin-patches@cygwin.com
Sun Dec 7 13:20:00 GMT 2003


On Fri, Dec 05, 2003 at 09:29:17PM -0500, Pierre A. Humblet wrote:
> Sure, here it is. BTW, F_SETLKW is yucky, at least on NT4. Not only
> the fcntl call isn't interruptible but the process itself can't be 
> killed with kill -9 while waiting. The sig thread itself waits during
> the close() call in the exit sequence.

I'm aware of this and it makes me not exactly happy.  A workaround
might be a bit tricky.  Using the Async I/O facility of LockFileEx
requires to call CreateFile already with FILE_FLAG_OVERLAPPED.  This
in turn requires to rewrite ReadFile and WriteFile calls to use
overlapped IO as well.

> 2003-12-06  Pierre Humblet <pierre.humblet@ieee.org>
> 
> 	* syscalls.cc (locked_append): New.
> 	(updwtmp): Remove mutex code and call locked_append.
> 	(pututline): Ditto.

Thanks, applied.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list