Re: My way to check if a progam is already running



On a sunny day (Sun, 24 Jun 2007 17:48:50 +0200) it happened Michal Nazarewicz
<mina86@xxxxxxx> wrote in <87645dl5el.fsf@xxxxxxxxxxxxxxxx>:

I don't think you need two loops. From what I understood EAGAIN means
that file is already locked (or otherwise cannot be locked):

Yes, you could be right, I would have to look at the lockf source to make sure.
.