saved_errno = errno;
if (retval == 0) {
/* child */
- lttng_ust_after_fork_child(&sigset);
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_fork_child()) {
__ust_after_fork_child(&sigset);
}
#endif
+ lttng_ust_after_fork_child(&sigset);
} else {
- lttng_ust_after_fork_parent(&sigset);
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_fork_parent()) {
__ust_after_fork_parent(&sigset);
}
#endif
+ lttng_ust_after_fork_parent(&sigset);
}
errno = saved_errno;
return retval;
saved_errno = errno;
if (retval == 0) {
/* child, parent called _exit() directly */
- lttng_ust_after_fork_child(&sigset);
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_fork_child()) {
__ust_after_fork_child(&sigset);
}
#endif
+ lttng_ust_after_fork_child(&sigset);
} else {
/* on error in the parent */
- lttng_ust_after_fork_parent(&sigset);
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_fork_parent()) {
__ust_after_fork_parent(&sigset);
}
#endif
+ lttng_ust_after_fork_parent(&sigset);
}
errno = saved_errno;
return retval;
retval = plibc_func(uid);
saved_errno = errno;
- lttng_ust_after_setuid();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_setuid()) {
__ust_after_setuid();
}
#endif
+ lttng_ust_after_setuid();
errno = saved_errno;
return retval;
retval = plibc_func(gid);
saved_errno = errno;
- lttng_ust_after_setgid();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_setgid()) {
__ust_after_setgid();
}
#endif
+ lttng_ust_after_setgid();
errno = saved_errno;
return retval;
retval = plibc_func(euid);
saved_errno = errno;
- lttng_ust_after_seteuid();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_seteuid()) {
__ust_after_seteuid();
}
#endif
+ lttng_ust_after_seteuid();
errno = saved_errno;
return retval;
retval = plibc_func(egid);
saved_errno = errno;
- lttng_ust_after_setegid();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_setegid()) {
__ust_after_setegid();
}
#endif
+ lttng_ust_after_setegid();
errno = saved_errno;
return retval;
retval = plibc_func(ruid, euid);
saved_errno = errno;
- lttng_ust_after_setreuid();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_setreuid()) {
__ust_after_setreuid();
}
#endif
+ lttng_ust_after_setreuid();
errno = saved_errno;
return retval;
retval = plibc_func(rgid, egid);
saved_errno = errno;
- lttng_ust_after_setregid();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_setregid()) {
__ust_after_setregid();
}
#endif
+ lttng_ust_after_setregid();
errno = saved_errno;
return retval;
struct ustfork_clone_info *info = (struct ustfork_clone_info *) arg;
/* clone is now done and we are in child */
- lttng_ust_after_fork_child(&info->sigset);
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_fork_child()) {
__ust_after_fork_child(&info->sigset);
}
#endif
+ lttng_ust_after_fork_child(&info->sigset);
return info->fn(info->arg);
}
ptid, tls, ctid);
saved_errno = errno;
/* The child doesn't get here. */
- lttng_ust_after_fork_parent(&info.sigset);
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_fork_parent()) {
__ust_after_fork_parent(&info.sigset);
}
#endif
+ lttng_ust_after_fork_parent(&info.sigset);
}
errno = saved_errno;
return retval;
retval = plibc_func(fd, nstype);
saved_errno = errno;
- lttng_ust_after_setns();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_setns()) {
__ust_after_setns();
}
#endif
+ lttng_ust_after_setns();
errno = saved_errno;
return retval;
retval = plibc_func(flags);
saved_errno = errno;
- lttng_ust_after_unshare();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_unshare()) {
__ust_after_unshare();
}
#endif
+ lttng_ust_after_unshare();
errno = saved_errno;
return retval;
retval = plibc_func(ruid, euid, suid);
saved_errno = errno;
- lttng_ust_after_setresuid();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_setresuid()) {
__ust_after_setresuid();
}
#endif
+ lttng_ust_after_setresuid();
errno = saved_errno;
return retval;
retval = plibc_func(rgid, egid, sgid);
saved_errno = errno;
- lttng_ust_after_setresgid();
#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
if (_init_ust_after_setresgid()) {
__ust_after_setresgid();
}
#endif
+ lttng_ust_after_setresgid();
errno = saved_errno;
return retval;