zolrath / wemux

Multi-User Tmux Made Easy
MIT License
3.63k stars 139 forks source link

Change ps command to lsof for kick_user #20

Closed DexterTheDragon closed 11 years ago

DexterTheDragon commented 11 years ago

The ps command used to find the sshd process to kick a user contains switches that don't work across all versions of ps. After looking at numerous options I settled on using lsof to find the pids. As far as I know lsof is available on all unix based platforms and provides a cleaner way to filter on user and command.

This will also fix issue #11.

zolrath commented 11 years ago

Works great, thanks!