diff options
| author | Sam Varshavchik | 2013-08-19 16:39:41 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2013-08-25 14:43:51 -0400 | 
| commit | 9c45d9ad13fdf439d44d7443ae75da15ea0223ed (patch) | |
| tree | 7a81a04cb51efb078ee350859a64be2ebc6b8813 /maildrop/globaltimer.C | |
| parent | a9520698b770168d1f33d6301463bb70a19655ec (diff) | |
| download | courier-libs-9c45d9ad13fdf439d44d7443ae75da15ea0223ed.tar.bz2 | |
Initial checkin
Imported from subversion report, converted to git. Updated all paths in
scripts and makefiles, reflecting the new directory hierarchy.
Diffstat (limited to 'maildrop/globaltimer.C')
| -rw-r--r-- | maildrop/globaltimer.C | 33 | 
1 files changed, 33 insertions, 0 deletions
| diff --git a/maildrop/globaltimer.C b/maildrop/globaltimer.C new file mode 100644 index 0000000..2223383 --- /dev/null +++ b/maildrop/globaltimer.C @@ -0,0 +1,33 @@ +#include "config.h" +/* +** Copyright 1998 - 2006 Double Precision, Inc. +** See COPYING for distribution information. +*/ + +#include	"globaltimer.h" +#include	"exittrap.h" +#include	<sysexits.h> +#include	<stdlib.h> +#if	HAVE_UNISTD_H +#include	<unistd.h> +#endif + + +GlobalTimer::GlobalTimer() +{ +} + +GlobalTimer::~GlobalTimer() +{ +} + +static const char msg[]="maildrop: Timeout quota exceeded.\n"; + +void GlobalTimer::handler() +{ +	ExitTrap::onexit(); +	if (write(2, msg, sizeof(msg)-1) < 0) +		; /* ignored */ + +	_exit(EX_TEMPFAIL); +} | 
