lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
When a command is being executed, and cancel via ctrl-c, the shell exists.
mazzika:(master) ~/src/lshell$ ./bin/lshell --config /tmp/lshell.conf
You are in a limited shell.
Type '?' or 'help' to get the list of allowed commands
ghantoos:~$ tail
^C
[1]+ Stopped ./bin/lshell --config /tmp/lshell.conf
Reported by @gaelL
When a command is being executed, and cancel via ctrl-c, the shell exists.
This seems to be caused by https://github.com/ghantoos/lshell/blob/master/lshell/shellcmd.py#L144