From: Jim Meyering Date: Wed, 8 Oct 2008 09:31:13 +0000 (+0000) Subject: avoid "make syntax-check" failure X-Git-Tag: LIBVIRT_0_5_0~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ca608b5d66602126e8bd887126d87f60cbdd54c;p=thirdparty%2Flibvirt.git avoid "make syntax-check" failure * src/cgroup.c (virCgroupSetValueStr): Use safe_write, not write. --- diff --git a/ChangeLog b/ChangeLog index 619d2b6cb4..2b2eab66e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Oct 7 23:08:51 CEST 2008 Jim Meyering + + avoid "make syntax-check" failure + * src/cgroup.c (virCgroupSetValueStr): Use safe_write, not write. + Tue Oct 7 18:33:39 CEST 2008 Daniel Veillard * src/qemu_driver.c: another OOM handling cleanup (Guido Günther) diff --git a/src/cgroup.c b/src/cgroup.c index a7d2ca9575..ed206dc643 100644 --- a/src/cgroup.c +++ b/src/cgroup.c @@ -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; }