exec is a wrapper around the corresponding system call (actually, a whole family of functions). Their man pages, e.g. execve(2) and signal(7) say that "the dispositions of handled signals
are reset to the default; the dispositions of ignored signals are left
unchanged."