Skip to content

Commit

Permalink
mxqi: Fix some debugging code/comments
Browse files Browse the repository at this point in the history
- Set sshd to debug level 4 when --debug is requested
- Remove obsoleted commented-out line
- Add commented-out lines to run special sshd or gdbserver
  • Loading branch information
donald committed Jun 6, 2024
1 parent 996c284 commit e80959e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mxqi/mxqi
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,12 @@ sub server {
if ($pid == 0) {
open STDOUT,'>&', $data_socket or die "$!\n";
open STDIN, '<&', $data_socket or die "$!\n";
#exec '/home/buczek/git/openssh/sshd',
#exec '/usr/bin/gdbserver', 'localhost:12344', '/home/buczek/git/openssh/sshd', # localhost ignored. "target remote HOST:12344"
exec '/usr/sbin/sshd',
'-i',
'-f', "$tmpdir/sshd_config",
$opt_debug ? ('-E', $ENV{HOME} . '/.cache/mxqi_debug/server_debug.log', '-d') : (),
# '-E', $ENV{HOME} . '/.cache/mxqi_server_debug.log', '-d',
$opt_debug ? ('-E', $ENV{HOME} . '/.cache/mxqi_debug/server_debug.log', '-dddd') : (),
;
die "exec sshd: $!\n";
}
Expand Down

0 comments on commit e80959e

Please sign in to comment.