History log of /freebsd-10.1-release/libexec/atrun/atrun.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 265368 05-May-2014 ghelmer

MFC r264617:

Fix releasing the lock in the parent atrun process after the queue
directory has been processed. Otherwise, a long-running child process
caused other atrun invocations to stall unnecessarily.

Submitted by: J.R. Oldroyd jr at opal.com


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 251627 11-Jun-2013 ghelmer

Add the name of the file that could not be opened to the error message
regarding the failure.

Suggested while working on PR bin/113239.


# 251625 11-Jun-2013 ghelmer

Prevent races running the queue by serializing access to the
queue directory.

PR: bin/113239


# 242372 30-Oct-2012 mjg

atrun(8): scale default load average limit with the number of CPUs

Previously atrun refused to run jobs if load average was not below fixed limit of 1.5.

PR: 173175
Reviewed by: peterj
Approved by: trasz (mentor)
MFC after: 2 weeks


# 240974 26-Sep-2012 jilles

atrun: Do not assume that MAXLOGNAME <= 100.

The reserved space for fmt was exactly sufficient for a two-digit value of
MAXLOGNAME - 1.

PR: bin/171815
Submitted by: Jeremy Huddleston Sequoia
MFC after: 1 week


# 200982 25-Dec-2009 ed

Don't use UT_NAMESIZE here to determine the maximum username length.


# 170773 15-Jun-2007 yar

Add PAM support to atrun(8).


# 170769 15-Jun-2007 yar

Actually use new features of perr() and perrx().


# 170767 15-Jun-2007 yar

Make perr() variadic and add perrx() to use in cases where
errno is irrelevant. Some code duplication can be reduced
if perr() is variadic and perrx() is available.


# 170741 14-Jun-2007 yar

Use a single setusercontext(3) instead of a bunch of basic syscalls.
Besides aesthetic benefits, that makes at(1) jobs subject to such
login.conf(5) settings as resource limits.


# 170739 14-Jun-2007 yar

Spotted another copy of the loony error message.


# 170728 14-Jun-2007 yar

Fix an error message that was beside the point.


# 170726 14-Jun-2007 yar

Fix a typical off-by-one error that can result in an unterminated string:

strncpy(dst, src, sizeof(dst));

by substituting the safer strlcpy() for strncpy().

X-Security: none (the source string isn't user-supplied)


# 153893 30-Dec-2005 ceri

Don't be sexist - fix a typo.


# 131990 11-Jul-2004 stefanf

Fix a few cases that relied on 'implicit int' (constraint violation in C99).


# 90148 03-Feb-2002 imp

o Eliminate __P
o Use new-style function definitions
o remove some !__STDC__ code
o eliminate register


# 80201 23-Jul-2001 kris

by by -> by

Obtained from: OpenBSD
MFC After: 1 week


# 69199 26-Nov-2000 kris

Don't hard-code a buffer size


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 38024 02-Aug-1998 bde

Fixed printf format errors.


# 31306 20-Nov-1997 charnier

Cosmetic in error strings. Sort Xrefs. Add usage (with syslog capability).


# 29231 08-Sep-1997 dima

Do setlogin() before changing uid/gid, since
`at/batch' requires this.

Obtained from: me && OpenBSD


# 24829 11-Apr-1997 davidn

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Fixes name size limitation (was hardcoded to 8).
Closes PR#3258


# 24349 28-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 22989 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 10401 28-Aug-1995 mpp

Check for expired passwords before allowing access to the system.


# 10154 21-Aug-1995 ache

Upgrade to 2.9


# 8870 30-May-1995 rgrimes

Remove trailing whitespace.


# 7777 12-Apr-1995 ache

Add some useful sendmail options


# 7768 12-Apr-1995 ache

Upgrade.
Close security holes reported.


# 939 04-Jan-1994 nate

Added the Linux atrun command as hacked by Chris Demetriou for NetBSD.