fix: handle EINTR correctly in get_cpu_mask_from_sysfs
[urcu.git] / src / compat-smp.h
index 2f204d74ffadd34887b0379e94a5c9474c8ddc06..5da8d6a03d7e7fd9b4b65e9617533c9b039bb436 100644 (file)
@@ -164,7 +164,7 @@ static inline int get_cpu_mask_from_sysfs(char *buf, size_t max_bytes, const cha
 
                total_bytes_read += bytes_read;
                assert(total_bytes_read <= max_bytes);
-       } while (max_bytes > total_bytes_read && bytes_read > 0);
+       } while (max_bytes > total_bytes_read && bytes_read != 0);
 
        /*
         * Make sure the mask read is a null terminated string.
This page took 0.022846 seconds and 4 git commands to generate.