GNOME Bugzilla – Bug 701538
Emacs needs g_child_watch_source_new_with_flags (pid, WUNTRACED)
Last modified: 2013-06-04 23:37:58 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.
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.)
bug already exists, with a (probably needs-work) patch *** This bug has been marked as a duplicate of bug 562501 ***