mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 21:20:27 -04:00
check return value from system call
This commit is contained in:
parent
8a01c6085d
commit
8924f4e4ad
@ -36,7 +36,9 @@ static void ps_report(void)
|
|||||||
#else /* GNU/Linux */
|
#else /* GNU/Linux */
|
||||||
sprintf(buf,"ps -o comm,majflt,minflt,rss,drs,pagein,sz,trs,vsz %d 1>&2",getpid() );
|
sprintf(buf,"ps -o comm,majflt,minflt,rss,drs,pagein,sz,trs,vsz %d 1>&2",getpid() );
|
||||||
#endif
|
#endif
|
||||||
system( buf );
|
if (system( buf )==-1) {
|
||||||
|
perror("system call to ps failed");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void pstats_report()
|
void pstats_report()
|
||||||
|
Loading…
Reference in New Issue
Block a user