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