diff --git a/test/pstats.c b/test/pstats.c index bb2244e..596826c 100644 --- a/test/pstats.c +++ b/test/pstats.c @@ -36,7 +36,9 @@ static void ps_report(void) #else /* GNU/Linux */ sprintf(buf,"ps -o comm,majflt,minflt,rss,drs,pagein,sz,trs,vsz %d 1>&2",getpid() ); #endif - system( buf ); + if (system( buf )==-1) { + perror("system call to ps failed"); + } } void pstats_report()