ghantoos / lshell

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.
GNU General Public License v3.0
436 stars 112 forks source link

[bug] pending command + ctrl-c => exists lshell #84

Closed ghantoos closed 10 years ago

ghantoos commented 10 years ago

Reported by @gaelL

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

This seems to be caused by https://github.com/ghantoos/lshell/blob/master/lshell/shellcmd.py#L144

ghantoos commented 10 years ago

This is actually a duplicate of #69. Closing.