From: John L. <mov...@us...> - 2003-11-13 15:23:01
|
Update of /cvsroot/oprofile/oprofile/gui In directory sc8-pr-cvs1:/tmp/cvs-serv4276/gui Modified Files: oprof_start_util.cpp Log Message: use realpath(3) Index: oprof_start_util.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/gui/oprof_start_util.cpp,v retrieving revision 1.38 retrieving revision 1.39 diff -u -p -d -r1.38 -r1.39 --- oprof_start_util.cpp 3 Nov 2003 23:48:48 -0000 1.38 +++ oprof_start_util.cpp 13 Nov 2003 15:22:57 -0000 1.39 @@ -66,7 +66,7 @@ daemon_status::daemon_status() int HZ; if (!daemon_pid.empty()) { string const exec = - follow_link(string("/proc/") + daemon_pid + "/exe"); + op_realpath(string("/proc/") + daemon_pid + "/exe"); if (exec.empty()) daemon_pid.erase(); else @@ -84,7 +84,7 @@ daemon_status::daemon_status() while ((dirent = readdir(dir))) { string const exec = - follow_link(string("/proc/") + op_realpath(string("/proc/") + dirent->d_name + "/exe"); string const name = op_basename(exec); if (name != "oprofiled") |