Skip to content

Commit e4d63c9

Browse files
committed
Run ssh-agent in foreground mode.
Background: In my previous commit, I changed the way that ssh-agent was spawned. However, it was only working when ssh-ident was running in debug mode. This is because ssh-agent needs to run in foreground work in general to work. In this change: - ssh-agent is run with the -D flag to force being run in foreground mode. This still makes it run as a seperate process. It just fixes compatibility with ssh-add -c.
1 parent 8aeafcb commit e4d63c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh-ident

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ class AgentManager(object):
778778

779779
# Redirect shell instructions from stdout to agent-file and debug output to
780780
# STDOUT if in DEBUG mode.
781-
command_flags = ""
781+
command_flags = "-D"
782782
log_pipe = None
783783
if ShouldPrint(config, LOG_DEBUG):
784784
command_flags = "-d"

0 commit comments

Comments
 (0)