Fix the sshd pid file

This commit is contained in:
Daniel A. Wozniak 2019-08-18 07:17:58 +00:00
parent 27d89bda2f
commit df95347f6e
No known key found for this signature in database
GPG Key ID: 166B9D2C06C82D61

View File

@ -672,7 +672,7 @@ class TestDaemon(object):
self.sshd_pidfile = os.path.join(RUNTIME_VARS.TMP_CONF_DIR, 'sshd.pid')
self.sshd_process = subprocess.Popen(
[sshd, '-f', 'sshd_config', '-oPidFile={0}'.format(self.sshd_pidfile)],
[sshd, '-f', 'sshd_config', '-o', 'PidFile={0}'.format(self.sshd_pidfile)],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
close_fds=True,