Fix over previous commit: setpgid() should be used instead of setsid().

If we use setsid() then spawned process will daemonize and there is a chance
it will survive desktop session end. That should be made impossible.