2008-04-01 17:43:03 +00:00
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
/*
|
|
|
|
* Utility routines.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 by Denys Vlasenko <vda.linux@googlemail.com>
|
|
|
|
*
|
2010-08-16 18:14:46 +00:00
|
|
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
2008-04-01 17:43:03 +00:00
|
|
|
*/
|
|
|
|
|
2015-10-09 14:42:57 +00:00
|
|
|
/* Keeping it separate allows to NOT pull in stdio for VERY small applets.
|
2008-04-01 17:43:03 +00:00
|
|
|
* Try building busybox with only "true" enabled... */
|
|
|
|
|
|
|
|
#include "libbb.h"
|
|
|
|
|
2015-10-09 14:42:57 +00:00
|
|
|
void (*die_func)(void);
|
2008-04-01 17:43:03 +00:00
|
|
|
|
2008-06-27 02:52:20 +00:00
|
|
|
void FAST_FUNC xfunc_die(void)
|
2008-04-01 17:43:03 +00:00
|
|
|
{
|
2015-10-09 14:42:57 +00:00
|
|
|
if (die_func)
|
|
|
|
die_func();
|
2008-04-01 17:43:03 +00:00
|
|
|
exit(xfunc_error_retval);
|
|
|
|
}
|