proof-of-concept of stealing an entire pty from an xterm
checkpoint: autodetect the terminal and fd, mask HUP.
ordering fix parsing /proc/pid/stat
use major(3)
flag to switch between traditional and steal mode.
Switch to getopt for option parsing.
Merge branch 'steal-pty'