mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
avoid "make syntax-check" failure
* src/cgroup.c (virCgroupSetValueStr): Use safe_write, not write.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user