mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
set the fd before using it.
2001-11-15 Michael Meeks <michael@ximian.com> * glib/giounix.c (g_io_channel_unix_new): set the fd before using it.
This commit is contained in:
parent
da611e7cec
commit
33904bdc6d
@ -1,3 +1,8 @@
|
||||
2001-11-15 Michael Meeks <michael@ximian.com>
|
||||
|
||||
* glib/giounix.c (g_io_channel_unix_new): set the fd
|
||||
before using it.
|
||||
|
||||
2001-11-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* tests/makefile.{mingw,msc}.in (TESTS): Add back mainloop-test
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-11-15 Michael Meeks <michael@ximian.com>
|
||||
|
||||
* glib/giounix.c (g_io_channel_unix_new): set the fd
|
||||
before using it.
|
||||
|
||||
2001-11-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* tests/makefile.{mingw,msc}.in (TESTS): Add back mainloop-test
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-11-15 Michael Meeks <michael@ximian.com>
|
||||
|
||||
* glib/giounix.c (g_io_channel_unix_new): set the fd
|
||||
before using it.
|
||||
|
||||
2001-11-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* tests/makefile.{mingw,msc}.in (TESTS): Add back mainloop-test
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-11-15 Michael Meeks <michael@ximian.com>
|
||||
|
||||
* glib/giounix.c (g_io_channel_unix_new): set the fd
|
||||
before using it.
|
||||
|
||||
2001-11-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* tests/makefile.{mingw,msc}.in (TESTS): Add back mainloop-test
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-11-15 Michael Meeks <michael@ximian.com>
|
||||
|
||||
* glib/giounix.c (g_io_channel_unix_new): set the fd
|
||||
before using it.
|
||||
|
||||
2001-11-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* tests/makefile.{mingw,msc}.in (TESTS): Add back mainloop-test
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-11-15 Michael Meeks <michael@ximian.com>
|
||||
|
||||
* glib/giounix.c (g_io_channel_unix_new): set the fd
|
||||
before using it.
|
||||
|
||||
2001-11-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* tests/makefile.{mingw,msc}.in (TESTS): Add back mainloop-test
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-11-15 Michael Meeks <michael@ximian.com>
|
||||
|
||||
* glib/giounix.c (g_io_channel_unix_new): set the fd
|
||||
before using it.
|
||||
|
||||
2001-11-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* tests/makefile.{mingw,msc}.in (TESTS): Add back mainloop-test
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-11-15 Michael Meeks <michael@ximian.com>
|
||||
|
||||
* glib/giounix.c (g_io_channel_unix_new): set the fd
|
||||
before using it.
|
||||
|
||||
2001-11-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* tests/makefile.{mingw,msc}.in (TESTS): Add back mainloop-test
|
||||
|
@ -556,6 +556,8 @@ g_io_channel_unix_new (gint fd)
|
||||
g_io_channel_init (channel);
|
||||
channel->funcs = &unix_channel_funcs;
|
||||
|
||||
unix_channel->fd = fd;
|
||||
|
||||
/* I'm not sure if fstat on a non-file (e.g., socket) works
|
||||
* it should be safe to say if it fails, the fd isn't seekable.
|
||||
*/
|
||||
@ -568,8 +570,6 @@ g_io_channel_unix_new (gint fd)
|
||||
else /* Assume not seekable */
|
||||
channel->is_seekable = FALSE;
|
||||
|
||||
unix_channel->fd = fd;
|
||||
|
||||
g_io_unix_get_flags (channel); /* Sets is_readable, is_writeable */
|
||||
|
||||
return channel;
|
||||
|
Loading…
Reference in New Issue
Block a user