! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
setsid() in xfce_spawn
Status:
RESOLVED: INVALID
Product:
Libxfce4ui
Component:
General

Comments

Description Nick Schermer editbugs 2009-10-20 14:45:50 CEST
When porting Xfrun to 4ui, the following function was called.

static void
xfrun_spawn_child_setup(gpointer data)
{
#if !defined(G_OS_WIN32) && defined(HAVE_SETSID)
    setsid();
#endif
}

I used gdk_spawn_on_screen directly, so not an issues for xfrun, but do we need something like this in xfce_spawn?
Comment 1 Brian J. Tarricone (not reading bugmail) 2009-10-20 17:03:25 CEST
No -- IIRC waitpid() won't work after you call setsid() since that ends up creating a fresh process group and (I think) reparents the child pid.  The setsid() in xfrun might actually be unnecessary...

Bug #5889

Reported by:
Nick Schermer
Reported on: 2009-10-20
Last modified on: 2009-10-24

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Attachments

Additional information