summaryrefslogtreecommitdiffstats
path: root/maildrop/globaltimer.C
blob: 22233833930d3472860417d4cc1f68922da25607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
}