cleanup.c revision 162852
1162852Sdes/* $OpenBSD: cleanup.c,v 1.5 2006/08/03 03:34:42 deraadt Exp $ */ 2126274Sdes/* 3126274Sdes * Copyright (c) 2003 Markus Friedl <markus@openbsd.org> 4126274Sdes * 5126274Sdes * Permission to use, copy, modify, and distribute this software for any 6126274Sdes * purpose with or without fee is hereby granted, provided that the above 7126274Sdes * copyright notice and this permission notice appear in all copies. 8126274Sdes * 9126274Sdes * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10126274Sdes * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11126274Sdes * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12126274Sdes * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13126274Sdes * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14126274Sdes * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15126274Sdes * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16126274Sdes */ 17162852Sdes 18126274Sdes#include "includes.h" 19126274Sdes 20162852Sdes#include <sys/types.h> 21162852Sdes 22162852Sdes#include <unistd.h> 23162852Sdes#include <stdarg.h> 24162852Sdes 25126274Sdes#include "log.h" 26126274Sdes 27126274Sdes/* default implementation */ 28126274Sdesvoid 29126274Sdescleanup_exit(int i) 30126274Sdes{ 31126274Sdes _exit(i); 32126274Sdes} 33