The originally used exit() is bad idea for the shared library.
Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
int i = 0;
if (setgid(getgid()) < 0)
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
if (setuid(getuid()) < 0)
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
type = mnt_fs_get_fstype(cxt->fs);
i, args[i]));
DBG_FLUSH;
execv(cxt->helper, (char * const *) args);
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
}
default:
{
if (mnt_context_is_child(cxt)) {
DBG(CXT, ul_debugobj(cxt, "next-mount: child exit [rc=%d]", rc));
DBG_FLUSH;
- exit(rc);
+ _exit(rc);
}
return 0;
}
int i = 0;
if (setgid(getgid()) < 0)
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
if (setuid(getuid()) < 0)
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
type = mnt_fs_get_fstype(cxt->fs);
i, args[i]));
DBG_FLUSH;
execv(cxt->helper, (char * const *) args);
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
}
default:
{