sleep can be interrupted by signals. Maybe your code (or some (C) library it uses) doesn't handle an incoming signal in a good way and the process ends that way?
Can you structure your process in a way that it can be easily restarted by a wrapping shell script or simply reimplement it as a cron job that is run every minute?
In reply to Re: Help on crash in sleep() !
by Corion
in thread Help on crash in sleep() !
by pcouderc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |