[Bug 5889] New: setsid() in xfce_spawn

View: New views
3 Messages — Rating Filter:   Alert me  

[Bug 5889] New: setsid() in xfce_spawn

by Bugzilla from bugzilla-daemon@xfce.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://bugzilla.xfce.org/show_bug.cgi?id=5889

           Summary: setsid() in xfce_spawn
    Classification: Xfce
           Product: Libxfce4ui
           Version: 4.7.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
        AssignedTo: nick@...
        ReportedBy: nick@...
         QAContact: bjt23@...
                CC: xfce-bugs@...


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?

--
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Xfce-bugs mailing list
Xfce-bugs@...
http://foo-projects.org/mailman/listinfo/xfce-bugs

[Bug 5889] setsid() in xfce_spawn

by Bugzilla from bugzilla-daemon@xfce.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://bugzilla.xfce.org/show_bug.cgi?id=5889

--- Comment #1 from Brian J. Tarricone <bjt23@...> 2009-10-20 10:03:25 PDT ---
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...

--
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Xfce-bugs mailing list
Xfce-bugs@...
http://foo-projects.org/mailman/listinfo/xfce-bugs

[Bug 5889] setsid() in xfce_spawn

by Bugzilla from bugzilla-daemon@xfce.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://bugzilla.xfce.org/show_bug.cgi?id=5889

Nick Schermer <nick@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Xfce-bugs mailing list
Xfce-bugs@...
http://foo-projects.org/mailman/listinfo/xfce-bugs