mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
avoid "make syntax-check" failure
* src/cgroup.c (virCgroupSetValueStr): Use safe_write, not write.
This commit is contained in:
parent
f9dbe46b44
commit
3ca608b5d6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user