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



On Jun 25, 4:10 am, Jan Panteltje <pNaonStpealm...@xxxxxxxxx> wrote:

EAGAIN means test again, and I have tested this soft and forced the
EAGAIN condition.
Unless (we still have to look at the lockf() source) EAGAIN is used wrongly,
the loop is correct.

I have see errno values been used wrongly before.
It is just playing safe.

Err, what?! EAGAIN does not mean "test again", it means the file is
locked. Since that was what you wanted to know, ...

You seem *extremely* confused.

DS

.



Relevant Pages

  • Re: My way to check if a progam is already running
    ... This loop is totally useless, because by the time you do the second ... what another lockf call happening in the past returned. ... EAGAIN means test again, and I have tested this soft and forced the EAGAIN condition. ... but errno was EAGAIN then what would you do? ...
    (comp.os.linux.development.apps)
  • Re: Program hanging when read()ing from pipe
    ... the descriptor to non-blocking and loop readuntil you get EAGAIN. ... EAGAIN doesn't mean the program is terminated. ...
    (comp.unix.programmer)
  • Re: My way to check if a progam is already running
    ... This loop is totally useless, because by the time you do the second ... what another lockf call happening in the past returned. ... EAGAIN means test again, and I have tested this soft and forced the EAGAIN condition. ... The 'real test' is the lock(..., ...
    (comp.os.linux.development.apps)
  • Re: While(1) or for(;;) for infinite loops?
    ... looked, at first glance, like it was the top of a while loop rather ... /* Tries to complete the connection on 'stream', ... If 'stream''s connection is complete, ... returns EAGAIN. ...
    (comp.lang.c)
  • Re: My way to check if a progam is already running
    ... what another lockf call happening in the past returned. ... EAGAIN means test again, and I have tested this soft and forced the EAGAIN condition. ... Unless source) EAGAIN is used wrongly, the loop is correct. ...
    (comp.os.linux.development.apps)