avoid "make syntax-check" failure

* src/cgroup.c (virCgroupSetValueStr): Use safe_write, not write.
This commit is contained in:
Jim Meyering 2008-10-08 09:31:13 +00:00
parent f9dbe46b44
commit 3ca608b5d6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Oct 7 23:08:51 CEST 2008 Jim Meyering <meyering@redhat.com>
avoid "make syntax-check" failure
* src/cgroup.c (virCgroupSetValueStr): Use safe_write, not write.
Tue Oct 7 18:33:39 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_driver.c: another OOM handling cleanup (Guido Günther)

View File

@ -649,7 +649,7 @@ int virCgroupAddTask(virCgroupPtr group, pid_t pid)
goto done;
}
if (write(fd, pidstr, strlen(pidstr)) <= 0) {
if (safe_write(fd, pidstr, strlen(pidstr)) <= 0) {
rc = -errno;
goto done;
}