From: John L. <mov...@us...> - 2001-09-25 17:07:10
|
Update of /cvsroot/oprofile/oprofile/gui In directory usw-pr-cvs1:/tmp/cvs-serv23471/gui Modified Files: oprof_start_config.cpp Log Message: use pidof instead Index: oprof_start_config.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/gui/oprof_start_config.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- oprof_start_config.cpp 2001/09/25 16:55:14 1.7 +++ oprof_start_config.cpp 2001/09/25 17:07:07 1.8 @@ -41,7 +41,7 @@ bool is_profiler_started() { - return !system("test `ps aux | grep oprofiled | grep -v grep | awk '{print $5}'`"); + return !system("test `/sbin/pidof oprofiled`"); } event_setting::event_setting() |