gsocket: Don't g_error() if file-descriptor is not a socket
authorStef Walter <stefw@redhat.com>
Tue, 17 Mar 2015 12:06:02 +0000 (13:06 +0100)
committerStef Walter <stefw@redhat.com>
Thu, 2 Jul 2015 10:24:11 +0000 (12:24 +0200)
commitf405f4211565fde3c58f3da9b18ddcdc5d82ccf2
tree5d3199611d5b6c052bc91a066ac1fb834605eaf3
parenta9c8cc143ce696c70526fb24079fb04b98adbfc7
gsocket: Don't g_error() if file-descriptor is not a socket

This code was out of date with current coding practices.

Nowadays it's common to receive file descriptors over environment
variables from other processes like systemd. The unit files that
control these file descriptors are configurable by sysadmins.

It is not (necessarily) a programmer error when g_socket_details_from_fd()
is called with a file descriptor that is not a socket. It can also
be a system and/or configuration error.

https://bugzilla.gnome.org/show_bug.cgi?id=746339
gio/gsocket.c