Use the proper type instead of knowledge which fd is stdin.
Move the signal catcher.
Merge branch 'master' of github.com:canboat/canboat