Looks like atrun has a race condition? (was: at job disappears?)

2007-05-15 Thread Dieter
disappearing into thin air. Looking at the atrun source, I think there is a race condition. When atrun starts running a job, the first thing it does is chmod the job file to 400. But in main() we have /* Delete older files */ if ((run_time now) !(S_IXUSR buf.st_mode

Is this a Race Condition?

2004-01-23 Thread Martin McCormick
I have a cron job that looks for files in /tmp and other directories that are more than X days old so that they go away and don't keep piling up. Every few days, I get a message like: --- Forwarded Message Date:Fri, 23 Jan 2004 10:51:00 CST From:[EMAIL PROTECTED](Cron

Re: Is this a Race Condition?

2004-01-23 Thread Daniela
On Friday 23 January 2004 17:13, Martin McCormick wrote: I have a cron job that looks for files in /tmp and other directories that are more than X days old so that they go away and don't keep piling up. Every few days, I get a message like: --- Forwarded Message Date:Fri, 23

Re: Is this a Race Condition?

2004-01-23 Thread Martin McCormick
Thank you. Daniela writes: Yes, that's most likely the cause. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Is this a Race Condition?

2004-01-23 Thread Dan Nelson
In the last episode (Jan 23), Martin McCormick said: Thank you. Daniela writes: Yes, that's most likely the cause. If you use find's -delete action instead of -exec, you can shorten the window between finding and deleting. -- Dan Nelson [EMAIL PROTECTED]