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.
Retry tcsetattr on EINTR and report failure
Merge pull request #39 from worr/eintr

Retry tcsetattr on EINTR and report failure
Use OpenBSD's reallocarray instead of realloc(p, s * n)
Merge pull request #40 from worr/reallocarray

Use OpenBSD's reallocarray instead of realloc(p, s * n)
Merge branch 'steal-pty'