I like the sound of that Craig, self-correcting.
John

<snip>
I don’t like having flags like that as jobs can be cancelled or end
abnormally leaving the flag set incorrectly.

If I want a singleton process I usually create a data area of the same
name
as the main program and exclusively lock the data area.

If the job ends the lock goes
</snip>
<br />
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].