I see the error in my ways and have converted it a while loop similar to the one suggested by virtualsue.
in reply to Re: Re: Daemon causing zombies under 5.8
in thread Daemon causing zombies under 5.8
I don't believe there is a stack issue since I am not concerned with the order in which they are selected at this point. The files are deleted by the program that is execed from the daemon. They are only rerun if they are still there after 20 minutes, which can occur if the system is disconnected from the secondary server.