[PATCH] credential: ignore SIGPIPE when writing to credential helpers

2018-03-29 Thread Erik E Brady
reasonable for it to take down the parent Git process with SIGPIPE. Even with such a helper, seeing this problem should be rare. Getting SIGPIPE requires the helper racily exiting before we've written the fairly small credential output. Signed-off-by: Erik E Brady --- credential.c | 3

[PATCH] credential: cred helper fast exit can cause SIGPIPE, crash

2018-03-28 Thread Erik E Brady
credential.c, run_credential_helper(): now ignores SIGPIPE when writing to credential helper. Avoids problem with race where cred helper exits very quickly and, after, git tries to write to it, generating SIGPIPE and crashing git. To reproduce this the cred helper must not read from STDIN. This