Only trap sighup when the process is "backgrounded"
Logic for background was reversed.
Merge https://github.com/pcn/pbs into release-1.10
changelog update