summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2015-12-11 02:29:03 +0000
committerDamien Miller <djm@mindrot.org>2015-12-18 14:49:32 +1100
commit79394ed6d74572c2d2643d73937dad33727fc240 (patch)
tree6acb5e003c89eb75fc1c5269129f4dd05f71c772
parentee607cccb6636eb543282ba90e0677b0604d8b7a (diff)
upstream commit
fflush stdout so that output is seen even when running in debug mode when output may otherwise not be flushed. Patch from dustin at null-ptr.net. Upstream-ID: b0c6b4cd2cdb01d7e9eefbffdc522e35b5bc4acc
-rw-r--r--ssh-agent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index d384cfbd0..709c5b703 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-agent.c,v 1.209 2015/12/11 02:20:28 djm Exp $ */ 1/* $OpenBSD: ssh-agent.c,v 1.210 2015/12/11 02:29:03 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1342,6 +1342,7 @@ main(int ac, char **av)
1342 printf(format, SSH_AUTHSOCKET_ENV_NAME, socket_name, 1342 printf(format, SSH_AUTHSOCKET_ENV_NAME, socket_name,
1343 SSH_AUTHSOCKET_ENV_NAME); 1343 SSH_AUTHSOCKET_ENV_NAME);
1344 printf("echo Agent pid %ld;\n", (long)parent_pid); 1344 printf("echo Agent pid %ld;\n", (long)parent_pid);
1345 fflush(stdout);
1345 goto skip; 1346 goto skip;
1346 } 1347 }
1347 pid = fork(); 1348 pid = fork();