Search Results

Search: Posts Made By: Don Cragun
7,020
Posted By Don Cragun
All that is required for a semaphore (or lock)...
All that is required for a semaphore (or lock) file is that you can test for its presence and create it if it was not already present as an atomic operation. As you said, this can be done in C with...
7,020
Posted By Don Cragun
Not quite. There is a race condition between the...
Not quite. There is a race condition between the time the existence test ([ -e "$fSemaphore" ]) is executed and the time the semaphore file is created (touch "$fSemaphore") that can allow two or...
7,020
Posted By Don Cragun
What you have shown us is a script that writes a...
What you have shown us is a script that writes a timestamp into a log file (which you haven't shown us), starts a process running in the background, sleeps for a second and exits. There is...
7,020
Posted By Don Cragun
My crystal ball is a little cloudy this morning. ...
My crystal ball is a little cloudy this morning. I am unable to see the sleep command in your code that you don't think is working.

Maybe you could show us your code, any logs and diagnostics...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy