|
[oprof-cvs] CVS: oprofile/libutil op_file.c,1.23.2.2,1.23.2.3
From: Maynard Johnson <maynardj@us...> - 2007-12-14 22:48
|
Update of /cvsroot/oprofile/oprofile/libutil
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9808/libutil
Modified Files:
Tag: JIT_SUPPORT
op_file.c
Log Message:
Make libopagent thread safe; fix regression bug
Index: op_file.c
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libutil/op_file.c,v
retrieving revision 1.23.2.2
retrieving revision 1.23.2.3
diff -u -p -d -r1.23.2.2 -r1.23.2.3
--- op_file.c 18 Nov 2007 16:53:08 -0000 1.23.2.2
+++ op_file.c 14 Dec 2007 22:46:30 -0000 1.23.2.3
@@ -125,11 +125,10 @@ int get_matching_pathnames(void * name_l
struct stat stat_buffer;
int match;
char * name = NULL;
- int keep_going = 1;
if (!(dir = opendir(base_dir)))
return -1;
- while (keep_going && ((ent = readdir(dir)) != 0)) {
+ while ((ent = readdir(dir)) != 0) {
if (is_directory_name(ent->d_name))
continue;
if (fnmatch(filter, ent->d_name, 0) == 0)
@@ -170,7 +169,6 @@ int get_matching_pathnames(void * name_l
*/
if (!fnmatch(filter, name, 0)) {
getpathname(name, name_list);
- keep_going = 0;
} else {
get_matching_pathnames(
name_list, getpathname,
|
| Thread | Author | Date |
|---|---|---|
| [oprof-cvs] CVS: oprofile/libutil op_file.c,1.23.2.2,1.23.2.3 | Maynard Johnson <maynardj@us...> |