delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/26/09:33:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
MIME-Version: 1.0
Subject: Locking file in cygwin
Date: Tue, 26 Apr 2005 09:21:40 -0400
Message-ID: <6BD989BB73712F41B1EDD1B8A32EA4C385F3DC@EXCHANGEVS1.comtechtel.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Vladislav Grinchenko" <vladislav DOT grinchenko AT comtechmobile DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j3QDWv6c007806

Hi,

I am new to cygwin (and win32 programming in general), so if the answer
to my question is covered somewhere else, please point me in the right
direction.

While porting one of my c++ libraries to cygwin, I stumbled over this:

Calling fcntl (fd, F_GETLK, ...) returns ENOSYS (function not
implemented).

I searched the archive and couldn't find anything appropriate to explain
why.
In short, this happens when I try to handle PID file locking to preclude
multiple instances of the same program simultaneously running on a
host.

If there is a more preferable way of handling this task in cygwin/win32,
I wouldn't mind implementing it.

One more thing, I don't need backward compatability if that is the case.
My target platforms are WinXP and Win2000.

Thanks in advance,
-Vlad

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