After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701538 - Emacs needs g_child_watch_source_new_with_flags (pid, WUNTRACED)
Emacs needs g_child_watch_source_new_with_flags (pid, WUNTRACED)
Status: RESOLVED DUPLICATE of bug 562501
Product: glib
Classification: Platform
Component: mainloop
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-06-03 16:07 UTC by Colin Walters
Modified: 2013-06-04 23:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Colin Walters 2013-06-03 16:07:13 UTC
See:

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14474
https://bugzilla.gnome.org/show_bug.cgi?id=676167

On Sat, 2013-06-01 at 10:33 -0400, Stefan Monnier wrote:
> Emacs has a function process-status that returns
> > a process's status.
> 
> Not only that, but the process-sentinel is called when the status
> changes.  This said, I don't know if there are any process-sentinels out
> there that need to be told when a process is stopped or "continued".

So in order to allow the Emacs developers to reimplement their mainloop using GLib underneath, we need to allow them to create a child watch source with WUNTRACED.
Comment 1 Dan Winship 2013-06-03 18:31:05 UTC
I'd say skip the flags and just have an alternate version that uses WUNTRACED|WCONTINUE. (Even if someone only cares about one or the other, stops and continues have to be paired, and aren't super common anyway, so it's not like getting the signal they didn't want would cause a huge additional number of wakeups.)
Comment 2 Dan Winship 2013-06-04 23:37:58 UTC
bug already exists, with a (probably needs-work) patch

*** This bug has been marked as a duplicate of bug 562501 ***