mirror of https://github.com/BOINC/boinc.git
- client and wrapper (Linux): when parsing /proc/x/stat entries,
handle command names that contains white space
This commit is contained in:
parent
8e63d72f3d
commit
eb7e3af7ed
|
@ -104,7 +104,7 @@ struct PROC_STAT {
|
|||
|
||||
int PROC_STAT::parse(char* buf) {
|
||||
int n = sscanf(buf,
|
||||
"%d (%s %c %d %d %d %d %d "
|
||||
"%d (%[^)]) %c %d %d %d %d %d "
|
||||
"%lu %lu %lu %lu %lu %lu %lu "
|
||||
"%d %d %d %d %d %d "
|
||||
"%lu %lu "
|
||||
|
@ -152,8 +152,6 @@ int PROC_STAT::parse(char* buf) {
|
|||
&processor
|
||||
);
|
||||
if (n == 39) {
|
||||
char* p = strchr(comm, ')');
|
||||
if (p) *p = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue