remove a dead code uncovered by coverity

Related to rhbz#1016571

Signed-off-by: Jakub Filak <jfilak@redhat.com>
check return values of fcntl() and setsid()

Revealed by coverity

Related to rhbz#1016571

Signed-off-by: Jakub Filak <jfilak@redhat.com>
Merge pull request #729 from abrt/rhbz1016571

Fix defects revealed by coverity