OSDN Git Service

* fhandler_process.cc (fhandler_process::open): Set fileid.
authorcgf <cgf>
Sun, 2 Jun 2002 16:42:02 +0000 (16:42 +0000)
committercgf <cgf>
Sun, 2 Jun 2002 16:42:02 +0000 (16:42 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_proc.cc
winsup/cygwin/fhandler_process.cc

index 90c97d0..cf4a6ff 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-02  Christopher January <chris@atomice.net>
+
+       * fhandler_process.cc (fhandler_process::open): Set fileid.
+
 2002-06-02  Christopher Faylor  <cgf@redhat.com>
 
        Remove unneeded sigproc.h includes throughout.
index 5d0a5a5..d9fe8a6 100644 (file)
@@ -317,13 +317,13 @@ fhandler_proc::fill_filebuf ()
       {
        if (!filebuf)
          {
-       struct utsname uts_name;
-       uname (&uts_name);
-           bufalloc = strlen (uts_name.sysname) + 1 + strlen (uts_name.release) +
-                     1 + strlen (uts_name.version) + 2;
-       filebuf = (char *) cmalloc (HEAP_BUF, bufalloc);
-           filesize = __small_sprintf (filebuf, "%s %s %s\n", uts_name.sysname,
-                        uts_name.release, uts_name.version);
+           struct utsname uts_name;
+           uname (&uts_name);
+               bufalloc = strlen (uts_name.sysname) + 1 + strlen (uts_name.release) +
+                         1 + strlen (uts_name.version) + 2;
+           filebuf = (char *) cmalloc (HEAP_BUF, bufalloc);
+               filesize = __small_sprintf (filebuf, "%s %s %s\n", uts_name.sysname,
+                            uts_name.release, uts_name.version);
          }
        break;
       }
index aaeead6..e918c3e 100644 (file)
@@ -226,6 +226,7 @@ fhandler_process::open (path_conv *pc, int flags, mode_t mode)
       goto out;
     }
 
+  fileid = process_file_no;
   fill_filebuf (p);
 
   if (flags & O_APPEND)