• Stefy Lanza (nextime / spora )'s avatar
    Fix tunnel close message issue when wsscp is interrupted · b3ef97b4
    Stefy Lanza (nextime / spora ) authored
    - Added SIGINT signal handler to wsscp.c for proper signal handling
    - Modified execute_scp_command() to fork/exec instead of using system()
    - Added process tracking with scp_pid global variable
    - Signal handler sends SIGTERM to SCP process when Ctrl+C is received
    - Added proper cleanup and exit code handling for interrupted transfers
    - Ensures wsssht (ProxyCommand) gets time to send tunnel_close message
    - Prevents orphaned processes and ensures clean tunnel closure
    
    This resolves the issue where Ctrl+C on wsscp didn't allow the underlying wsssht process to send tunnel_close messages to the server.
    b3ef97b4
Name
Last commit
Last update
templates Loading commit data...
wsssd Loading commit data...
wsssh-server/debian Loading commit data...
wssshtools Loading commit data...
.gitignore Loading commit data...
BRIDGE_MODE_TESTING.md Loading commit data...
CHANGELOG.md Loading commit data...
DOCUMENTATION.md Loading commit data...
LICENSE.md Loading commit data...
README.md Loading commit data...
TODO.md Loading commit data...
build.sh Loading commit data...
clean.sh Loading commit data...
image.jpg Loading commit data...
prompt.txt Loading commit data...
requirements.txt Loading commit data...
service.conf.example Loading commit data...
test_bridge_mode.sh Loading commit data...
wssshc.conf.example Loading commit data...
wssshc.init Loading commit data...
wssshc_watcher.sh Loading commit data...
wssshd.conf.example Loading commit data...
wssshd.init Loading commit data...
wssshd.py Loading commit data...
wsssht.conf.example Loading commit data...
wsssht.init Loading commit data...