add comments

This commit is contained in:
tgauth@bu.edu 2023-09-07 16:59:04 -04:00
parent ae0f346a7a
commit ffd23297ae
2 changed files with 10 additions and 3 deletions

7
misc.c
View File

@ -331,6 +331,13 @@ waitfd(int fd, int *timeoutp, short events, volatile sig_atomic_t *stop)
pfd.fd = fd;
pfd.events = events;
#ifdef WINDOWS
/*
* Windows does not support sigprocmask
* which was implemented to handle ctrl+c during multiplexing.
* When Win32-OpenSSH adds multiplexing support, modify and use
* native_sig_handler in contrib/win32/win32compat/signal.c here
*
*/
for (; !have_timeout || *timeoutp >= 0;) {
monotime_tv(&t_start);
r = poll(&pfd, 1, *timeoutp);

View File

@ -302,8 +302,8 @@ fi
SSHLOGWRAP=$OBJ/ssh-log-wrapper.sh
# BALU todo - check if we need to pass -T flag
if [ "$os" == "windows" ]; then
# timestamp line messes up stderr-data.sh stderr-after-eof.sh,
# seems to be used for concurrency tests that Windows doesn't support yet anyway
# timestamp line messes up stderr-data.sh stderr-after-eof.sh
# seems to be used for debugging concurrency tests (a feature unsupported on Windows currently)
cat >$SSHLOGWRAP <<EOD
#!/bin/sh
logfile="${TEST_SSH_LOGDIR}/\${timestamp}.ssh.\$\$.log"
@ -317,7 +317,7 @@ EOD
else
cat >$SSHLOGWRAP <<EOD
#!/bin/sh
#timestamp="\`$OBJ/timestamp\`"
timestamp="\`$OBJ/timestamp\`"
logfile="${TEST_SSH_LOGDIR}/\${timestamp}.ssh.\$\$.log"
echo "Executing: ${SSH} \$@" log \${logfile} >>$TEST_REGRESS_LOGFILE
echo "Executing: ${SSH} \$@" >>\${logfile}