moved capture stdio after pid creation so message printed on error
Merge branch 'master' of github.com:greglange/daemonx