MXS-2019: Fix atexit handlers
The code now registers all functions once instead of one function multiple times.
This commit is contained in:
@ -1464,7 +1464,7 @@ int main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
for (int i = 0; exitfunp[i] != NULL; i++)
|
for (int i = 0; exitfunp[i] != NULL; i++)
|
||||||
{
|
{
|
||||||
int l = atexit(*exitfunp);
|
int l = atexit(exitfunp[i]);
|
||||||
|
|
||||||
if (l != 0)
|
if (l != 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user