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:
Michael Meeks 2001-11-15 00:13:52 +00:00 committed by Michael Meeks
parent da611e7cec
commit 33904bdc6d
9 changed files with 42 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;