Better error handling if setsid() fails.
Better error handling if setsid() fails.

nelhage/reptyr,yatsek/reptyr,yatsek/reptyr,yatsek/reptyr,developerfm/reptyr,nelhage/reptyr,developerfm/reptyr,jerome-pouiller/reredirect,nelhage/reptyr,developerfm/reptyr,jerome-pouiller/reredirect