diff options
-rw-r--r-- | lib/igt_sysfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c index e7c67dae..030d1c6a 100644 --- a/lib/igt_sysfs.c +++ b/lib/igt_sysfs.c @@ -399,7 +399,9 @@ int igt_sysfs_vprintf(int dir, const char *attr, const char *fmt, va_list ap) file = fdopen(fd, "w"); if (file) { - ret = vfprintf(file, fmt, ap); + do { + ret = vfprintf(file, fmt, ap); + } while (ret == -1 && errno == EINTR); fclose(file); } close(fd); |