this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

check return value from system call

+3 -1
+3 -1
test/pstats.c
··· 36 36 #else /* GNU/Linux */ 37 37 sprintf(buf,"ps -o comm,majflt,minflt,rss,drs,pagein,sz,trs,vsz %d 1>&2",getpid() ); 38 38 #endif 39 - system( buf ); 39 + if (system( buf )==-1) { 40 + perror("system call to ps failed"); 41 + } 40 42 } 41 43 42 44 void pstats_report()