atd fails to execute jobs in a timely manner after sleep/hibernation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
at (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: at
How to reproduce:
put a job into atd. E.g.
% echo "date > /tmp/atd.stamp"|at 11:00
Then put the computer to sleep. After wakeup, the job will not execute at 11:00 anymore - or if that time has already passed, it should execute right away, but often takes 0.5h or more.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: at 3.1.12-1ubuntu2
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Tue May 17 09:02:51 2011
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426.3)
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/zsh
SourcePackage: at
UpgradeStatus: No upgrade log present (probably fresh install)
Attached is a solution to the problem. It might be better to fix it in atd itself (i.e. use something different than sleep, or install a signal handler).