mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
moved INSURE hook into util.c
This commit is contained in:
parent
780713f67a
commit
2fba24ef0e
@ -780,26 +780,3 @@ static void usage(char *pname)
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
#ifdef __INSURE__
|
||||
int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6)
|
||||
{
|
||||
static int (*fn)();
|
||||
int ret;
|
||||
char *cmd = lp_panic_action();
|
||||
|
||||
if (!fn) {
|
||||
static void *h;
|
||||
h = dlopen("/usr/local/parasoft/insure++lite/lib.linux2/libinsure.so", RTLD_LAZY);
|
||||
fn = dlsym(h, "_Insure_trap_error");
|
||||
}
|
||||
|
||||
ret = fn(a1, a2, a3, a4, a5, a6);
|
||||
|
||||
if (cmd && *cmd) {
|
||||
system(cmd);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user