| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
| |
and/or syslog depending on whether stderr is hooked up at the time.
Also remove closelog() which is not needed since we are headed for exec.
OK guenther@
|
| |
|
|
|
|
|
|
| |
"(username) WHAT (details)". Logs due to normal operation (e.g.
crontab operations or running commands) are logged at LOG_INFO like
before. Actual errors are logged at LOG_ERR, less important things
are logged at LOG_WARNING OR LOG_NOTICE. Also ignore SIGHUP now
that there is no log file to reopen.
|
| | |
|
| |
|
|
|
| |
what each .c file needs. I have not removed cron.h since it will
be used in a future clean up of the cron's .h files. OK nicm@
|
| |
|
|
| |
OK nicm@
|
| |
|
|
|
| |
running so verify that if the cron socket exists nothing is listening
on it. OK tedu@
|
| | |
|
| |
|
|
|
|
| |
just to keep track of a single pid. Return it to the caller and make it
their problem.
ok deraadt millert
|
| | |
|
| |
|
|
| |
head copyright assertion was seperated from the remaining ones.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
help legibility. (unix system calls use 0 for ok, but hundreds of
other projects use 1 to indicate success.) Despite the name, many
system calls (e.g., open) also return not OK values for success.
It also cleans up some weird code like int crontab_fd = OK - 1;
This diff is mechanical in nature. Later I will fix the bugs it reveals.
ok deraadt
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
I think the level of debug code in cron is excessive for a program
that has reached feature complete. If cron needs to provide more
information to the user about its operational status, I think syslog
would be more appropriate. (The debug flags also disable forking
into the background, so they aren't even that useful for debugging a
live system.)
ok deraadt millert
|
| |
|
|
| |
and use limits.h instead of sys/param.h.
|
| |
|
|
| |
BSD macro from sys/param.h.
|
| | |
|
| |
|
|
| |
ok jca
|
| | |
|
| |
|
|
| |
defines instead of using custom macros. OK deraadt@ gilles@
|
| |
|
|
|
|
| |
We ignore it by default so cron doesn't die if sendmail is missing
or exits prematurely but the actual command being run should have the
default handler installed.
|
| | |
|
| |
|
|
|
|
|
| |
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
| |
|
|
|
|
|
| |
Ignore SIG_PIPE when writing to sendmail. This allows cron to still
run jobs when sendmail is missing or broken (a warning will be logged).
Move mailto variable to the same scope as mail and use the mail
variable, not mailto, to test whether we have an open pipe to the mailer.
|
| | |
|
| |
|
|
| |
OK henning@, ckuethe@, krw@, ian@. From Tamas TEVESZ.
|
| |
|
|
|
| |
Remove unused macros Skip_Line and MkLower
Remove trailing whitespace
|
| | |
|
| |
|
|
|
|
|
|
| |
Check return values for setgid, initgroups and setuid in code we don't compile.
Print the correct filename for the at job in mail sent.
Add some #if DEBUGGING in cron.c's usage().
Set sunlen each time before using it in accept().
Don't send mail at all if MAILTO is set but empty.
|
| |
|
|
| |
to send mail to usernames with a '_' in them. From David Gwynne.
|
| | |
|
| |
|
|
|
| |
by similar changes in FreeBSD and NetBSD. For at jobs, include the
job number in the proctitle.
|
| |
|
|
| |
The at(1) code is now more tightly integrated into the cron codebase.
|
| |
|
|
| |
of calling closelog() (with #ifdefs) directly.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
long-standing annoyance that atrun's granularity is 10 minutes.
Most at jobs run with a 1 minute granularity. Jobs submitted via
"at now" or "batch" will run immediately. Includes a rewritten
cron(8) man page. at(1) will be integrated more closely into
cron at a future date.
Upgrading notes:
the atrun job in root's crontab should be removed.
the /var/at/spool directory is no longer used
|
| |
|
|
| |
bare backslashes.
|
| |
|
|
|
|
|
|
|
|
|
| |
o ANSI function headers
o return (foo) not return foo
o add -oi to sendmail flags
o update email address in man pages
o make some strings const
o completely remove globbing cruft from popen.c
o whitespace changes
o add DOW_STAR to flags for "monthly", "weekly", and "daily" cron entries
|
| | |
|
| |
|
|
|
| |
stdout. This was a pasto/thinko on my part. Problem found by
jean-philippe wan-hoi.
|
| | |
|
| |
|
|
| |
deraadt@ ok
|
| | |
|
| |
|
|
|
|
| |
Change an unsafe vfork() to fork()
Fix dup2() usage--must check for oldd == newd case and no need to close oldd
Fixes annoying messages from sendmail about stdout being closed.
|
| |
|
|
| |
I also fixed the signal handlers while I was at it.
|
| | |
|
| |
|
|
|
| |
setusercontext() in most places where previously we did a setlogin().
Add default login.conf file and put root in the "daemon" login class.
|
| |
|
|
|
|
|
|
| |
complaining "Can't ignore signal CHLD, forcing to default".
Setting SIGCHLD to SIG_IGN means "don't provide exit status for my
children" on some OSes which is not what we want--we just don't
want to catch SIGCHLD since our parent does that for us.
|