mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-13 11:15:08 +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>
|
Tue Oct 7 18:33:39 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/qemu_driver.c: another OOM handling cleanup (Guido Günther)
|
* src/qemu_driver.c: another OOM handling cleanup (Guido Günther)
|
||||||
|
@ -649,7 +649,7 @@ int virCgroupAddTask(virCgroupPtr group, pid_t pid)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (write(fd, pidstr, strlen(pidstr)) <= 0) {
|
if (safe_write(fd, pidstr, strlen(pidstr)) <= 0) {
|
||||||
rc = -errno;
|
rc = -errno;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user