--- src/usr.sbin/cron/cron/do_command.c 2004/12/18 22:48:03 1.6 +++ src/usr.sbin/cron/cron/do_command.c 2006/03/18 20:29:50 1.7 @@ -71,6 +71,7 @@ static void child_process(entry *e, user *u) { int stdin_pipe[2], stdout_pipe[2]; + int jitter; char *input_data; char *usernm, *mailto; int children = 0; @@ -159,6 +160,12 @@ child_process(entry *e, user *u) Debug(DPROC, ("[%d] grandchild process Vfork()'ed\n", getpid())) + jitter = (e->uid == ROOT_UID) ? RootJitter : Jitter; + if (jitter != 0) { + srandom(getpid()); + sleep(random() % jitter); + } + /* write a log message. we've waited this long to do it * because it was not until now that we knew the PID that * the actual user command shell was going to get and the