Index: fhandler_proc.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/fhandler_proc.cc,v retrieving revision 1.47 diff -u -r1.47 fhandler_proc.cc --- fhandler_proc.cc 12 Sep 2004 03:47:56 -0000 1.47 +++ fhandler_proc.cc 18 Dec 2004 14:08:25 -0000 @@ -54,6 +54,7 @@ "uptime", "cpuinfo", "partitions", + "self", NULL }; @@ -73,6 +74,7 @@ FH_PROC, FH_PROC, FH_PROC, + FH_PROCESS, }; /* name of the /proc filesystem */ Index: fhandler_process.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/fhandler_process.cc,v retrieving revision 1.44 diff -u -r1.44 fhandler_process.cc --- fhandler_process.cc 3 Sep 2004 01:53:11 -0000 1.44 +++ fhandler_process.cc 18 Dec 2004 14:08:26 -0000 @@ -107,7 +107,10 @@ int file_type = exists (); (void) fhandler_base::fstat (buf); path += proc_len + 1; - pid = atoi (path); + if (path_prefix_p ("self", path, 4)) + pid = getpid (); + else + pid = atoi (path); pinfo p (pid); if (!p) { @@ -167,7 +170,10 @@ const char *path; path = get_name () + proc_len + 1; - pid = atoi (path); + if (path_prefix_p ("self", path, 4)) + pid = getpid (); + else + pid = atoi (path); while (*path != 0 && !isdirsep (*path)) path++;