mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent, dirmngr, scd: Fix init_common_subsystems.
* common/init.c (_init_common_subsystems): Don't call gpgrt_set_syscall_clamp in this function. * agent/gpg-agent.c, dirmngr/dirmngr.c, scd/scdaemon.c: Call gpgrt_set_syscall_clamp after npth_init. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
4aadc751f2
commit
fc0b392e76
4 changed files with 4 additions and 11 deletions
|
@ -723,6 +723,7 @@ main (int argc, char **argv )
|
|||
#endif
|
||||
|
||||
npth_init ();
|
||||
gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
|
||||
|
||||
/* If --debug-allow-core-dump has been given we also need to
|
||||
switch the working directory to a place where we can actually
|
||||
|
@ -862,6 +863,7 @@ main (int argc, char **argv )
|
|||
/* This is the child. */
|
||||
|
||||
npth_init ();
|
||||
gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
|
||||
|
||||
/* Detach from tty and put process into a new session. */
|
||||
if (!nodetach )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue