Home GnuPG

Fix assuan_get_pid for pipe servers.
edbe8fdcea1aUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix assuan_get_pid for pipe servers.

At some point in the past we introduced a regression in that the
client of a pipe server received its own pid and not the pid of
the server.

  • src/assuan-pipe-connect.c (struct at_pipe_fork)

(struct at_socketpair_fork): Add PARENT_PID.
(at_pipe_fork_cb, at_socketpair_fork): Use PARENT_PID instead of getpid.
(pipe_connect, socketpair_connect): Set PARENT_PID.

Details

Provenance
wernerAuthored on Dec 13 2011, 6:27 PM
Parents
rAff9a8c2e64ea: vasprintf.c: Improve test code.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rAedbe8fdcea1a: Fix assuan_get_pid for pipe servers. (authored by Werner Koch <wk@gnupg.org>).Dec 13 2011, 6:27 PM