Add comment about dup(0) and lack of /dev/stdin on Win32. (#407431)
authorTor Lillqvist <tml@novell.com>
Tue, 13 Feb 2007 20:19:09 +0000 (20:19 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Tue, 13 Feb 2007 20:19:09 +0000 (20:19 +0000)
2007-01-02  Tor Lillqvist  <tml@novell.com>

* glib-genmarshal.c (main): Add comment about dup(0) and
lack of /dev/stdin on Win32. (#407431)

svn path=/trunk/; revision=5335

gobject/ChangeLog
gobject/glib-genmarshal.c

index 507f4f7..5fb2116 100644 (file)
@@ -1,7 +1,8 @@
 2007-01-02  Tor Lillqvist  <tml@novell.com>
 
        * glib-genmarshal.c (main): Handle "/dev/stdin" by dup()ing fd 0
-       so that it works on Win32, too.
+       so that it works on Win32 and other systems without
+       /dev/stdin. (#407431)
 
 2006-12-29 Matthias Clasen  <mclasen@redhat.com>
 
index 07e32b1..a36842d 100644 (file)
@@ -657,6 +657,7 @@ main (int   argc,
       gint fd;
 
       if (strcmp (file, "/dev/stdin") == 0)
+       /* Mostly for Win32. This is equivalent to opening /dev/stdin */
        fd = dup (0);
       else
        fd = open (file, O_RDONLY);