in reply to Re: run a background process
in thread run a background process

Thank you! I forgot completely about close *bonk self*

This worked:

exit if fork(); close STDOUT; close STDERR; chdir './somewhere'; exec './somestuff';