This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bug fix for empty files in /proc/<n>


This patch fixes the empty files bug that cropped up a little while back. I
don't plan on doing any more patches except bug fixes until 1.3.11 is
released because I don't have the time.

Regards
Chris

2002-02-26  Christopher January <chris@atomice.net>

    * fhandler_process.cc (fhandler_process::open): Set fileid.

Index: fhandler_process.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/fhandler_process.cc,v
retrieving revision 1.11
diff -u -p -b -B -r1.11 fhandler_process.cc
--- fhandler_process.cc 2 Jun 2002 06:07:00 -0000 1.11
+++ fhandler_process.cc 2 Jun 2002 10:58:41 -0000
@@ -226,6 +226,7 @@ fhandler_process::open (path_conv *pc, i
       goto out;
     }

+  fileid = process_file_no;
   fill_filebuf (p);

   if (flags & O_APPEND)

Attachment: proc.patch.5
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]