chiark
/
gitweb
/
~ian
/
gnupg2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a41d77f
)
DEBUGGING PATCH FROM NIIBE (2)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 6 Jan 2018 13:53:30 +0000
(13:53 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 6 Jan 2018 13:53:30 +0000
(13:53 +0000)
common/exechelp-posix.c
patch
|
blob
|
history
diff --git
a/common/exechelp-posix.c
b/common/exechelp-posix.c
index 7237993a22e757665aaa7fe2cb3b59fd39c0a0da..33004250b8fd61cf8f9992c531a9858b49b94bc5 100644
(file)
--- a/
common/exechelp-posix.c
+++ b/
common/exechelp-posix.c
@@
-850,17
+850,7
@@
gnupg_spawn_process_detached (const char *pgmname, const char *argv[],
}
if (!pid)
{
- pid_t pid2;
-
gcry_control (GCRYCTL_TERM_SECMEM);
- if (setsid() == -1 || chdir ("/"))
- _exit (1);
-
- pid2 = fork (); /* Double fork to let init take over the new child. */
- if (pid2 == (pid_t)(-1))
- _exit (1);
- if (pid2)
- _exit (0); /* Let the parent exit immediately. */
if (envp)
for (i=0; envp[i]; i++)