| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=689223
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are two benefits to this:
1) We can centralize any operating system specific knowledge of
close-vs-EINTR handling. For example, while on Linux we should never
retry, if someone cared enough later about HP-UX, they could come by
and change this one spot.
2) For places that do care about the return value and want to provide
the caller with a GError, this function makes it convenient to do so.
Note that gspawn.c had an incorrect EINTR loop-retry around close().
https://bugzilla.gnome.org/show_bug.cgi?id=682819
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=658020
|
|
|
|
|
|
|
|
|
| |
Spotted by Ray Strode <rstrode@redhat.com>
While we're here, microoptimize by skipping the fcntl() calls if flags
is 0.
https://bugzilla.gnome.org/show_bug.cgi?id=690069
|
|
|
|
|
|
| |
Just like g_timeout_add() and friends, we want to hide the unintrospectable
g_unix_signal_add() from GI bindings and present g_unix_signal_add_full() as
GLib.unix_signal_add() to them.
|
|
|
|
|
|
|
| |
These are user defined, it makes sense to allow watching them. This
is needed to port gnome-session and gdm over.
https://bugzilla.gnome.org/show_bug.cgi?id=686898
|
| |
|
|
|
|
|
| |
This commit just deals with glib/.
gobject/ and gio/ will be handled in separate commits.
|
|
|
|
|
|
|
|
| |
Fixes for gtk-doc warnings.
http://bugzilla.gnome.org/show_bug.cgi?id=66469
https://bugzilla.gnome.org/show_bug.cgi?id=664699
|
|
|
|
| |
(and a few other unrelated comment fixes)
|
| |
|
|
|
|
|
|
|
|
| |
Change the unix signal watch API to match other sources in both
available functions, names of those functions and order of the
parameters to the _full function.
https://bugzilla.gnome.org/show_bug.cgi?id=657705
|
|
|
|
|
|
|
|
|
| |
Fix some bugs in the fallback case of g_unix_open_pipe:
- close both halves of the pipe on error (not just one)
- set the cloexec flag on both halves of the pipe (instead of settings
it twice on one half)
|
| |
|
|
|
|
| |
Now with fewer broken links...
|
| |
|
|
|
|
| |
Add Since tags, etc.
|
|
|
|
|
|
| |
From IRC discussion, people liked this name more.
https://bugzilla.gnome.org/show_bug.cgi?id=649322
|
| |
|
|
|
|
|
|
| |
And use it in relevant places in GLib.
https://bugzilla.gnome.org/show_bug.cgi?id=649225
|
|
|
|
|
|
|
|
|
|
|
|
| |
This new API allows watching a few select Unix signals;
looking through the list on my system, I didn't see anything
else that I think it'd reasonable to watch.
We build on the previous patch to make the child watch helper thread
that existed on Unix handle these signals in the threaded case.
In the non-threaded case, they're just global variables.
https://bugzilla.gnome.org/show_bug.cgi?id=644941
|
|
|
|
|
|
|
| |
In preparation for supporting more Unix signals such as SIGHUP,
SIGTERM etc.,
https://bugzilla.gnome.org/show_bug.cgi?id=644941
|
|
GLib historically has been designed to be "mostly" portable; there
are some functions only available on Unix like g_io_channel_unix_new(),
but these are typically paired with obvious counterparts for Win32.
However, as GLib is used not only by portable software, but components
targeting Unix (or even just Linux), there are a few cases where it
would be very convenient if GLib shipped built-in functionality.
This initial patch is a basic wrapper around pipe2(), including
fallbacks for older kernels. This pairs well with the
existing g_spawn_*() API and its child_setup functionality.
However, in the future, I want to add a signal() wrapper here,
complete with proxying the signal to a mainloop. I have initial code
for this, but doing it sanely (including factoring out gmain.c's
private worker thread), is a complex task, and I don't want to block
on that.
See also gwin32.h for Win32 specific functionality.
https://bugzilla.gnome.org/show_bug.cgi?id=644941
|