X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=contrib%2Fbin%2Fmemaslap%2Fms_sigsegv.h;fp=contrib%2Fbin%2Fmemaslap%2Fms_sigsegv.h;h=c990087cb6517bb9769779009dd0ad25b4a7889c;hb=fd0f1940d4b11f582fc237ff5ccf2c385eaa0e7d;hp=0000000000000000000000000000000000000000;hpb=814795a9591799e2dfc44d8c855c672d82b70b86;p=m6w6%2Flibmemcached diff --git a/contrib/bin/memaslap/ms_sigsegv.h b/contrib/bin/memaslap/ms_sigsegv.h new file mode 100644 index 00000000..c990087c --- /dev/null +++ b/contrib/bin/memaslap/ms_sigsegv.h @@ -0,0 +1,36 @@ +/* + +--------------------------------------------------------------------+ + | libmemcached - C/C++ Client Library for memcached | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted under the terms of the BSD license. | + | You should have received a copy of the license in a bundled file | + | named LICENSE; in case you did not receive a copy you can review | + | the terms online at: https://opensource.org/licenses/BSD-3-Clause | + +--------------------------------------------------------------------+ + | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ | + | Copyright (c) 2020 Michael Wallner | + +--------------------------------------------------------------------+ +*/ + +#ifndef MS_SIGSEGV_H +#define MS_SIGSEGV_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* redirect signal seg */ +int ms_setup_sigsegv(void); + +/* redirect signal pipe */ +int ms_setup_sigpipe(void); + +/* redirect signal int */ +int ms_setup_sigint(void); + +#ifdef __cplusplus +} +#endif + +#endif /* end of MS_SIGSEGV_H */