Update POTFILES, and s/write/safewrite/ to appease 'make syntax-check'

This commit is contained in:
Cole Robinson 2009-05-12 20:44:29 +00:00
parent be9e5185b4
commit af8600678d
3 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,8 @@
Tue May 12 16:39:06 EDT 2009 Cole Robinson <crobinso@redhat.com>
* tests/eventtest.c: Use safewrite instead of write
* po/POTFILES.in: Add src/vbox/vbox_driver.c
Tue May 12 16:25:59 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/storage_backend_fs.c: Break out FS volume build routines to

View File

@ -38,6 +38,7 @@ src/uml_conf.c
src/uml_driver.c
src/util.c
src/uuid.c
src/vbox/vbox_driver.c
src/vbox/vbox_tmpl.c
src/virsh.c
src/virterror.c

View File

@ -30,6 +30,7 @@
#include "internal.h"
#include "threads.h"
#include "logging.h"
#include "util.h"
#include "../qemud/event.h"
#define NUM_FDS 5
@ -309,7 +310,7 @@ mymain(int argc, char **argv)
/* First time, is easy - just try triggering one of our
* registered handles */
startJob("Simple write", &test);
ret = write(handles[1].pipeFD[1], &one, 1);
ret = safewrite(handles[1].pipeFD[1], &one, 1);
if (finishJob(1, -1) != EXIT_SUCCESS)
return EXIT_FAILURE;
@ -319,7 +320,7 @@ mymain(int argc, char **argv)
* try triggering another handle */
virEventRemoveHandleImpl(handles[0].watch);
startJob("Deleted before poll", &test);
ret = write(handles[1].pipeFD[1], &one, 1);
ret = safewrite(handles[1].pipeFD[1], &one, 1);
if (finishJob(1, -1) != EXIT_SUCCESS)
return EXIT_FAILURE;
@ -346,13 +347,13 @@ mymain(int argc, char **argv)
/* NB: this case is subject to a bit of a race condition.
* Only 1 time in 3 does the 2nd write get triggered by
* before poll() exits for the first write(). We don't
* before poll() exits for the first safewrite(). We don't
* see a hard failure in other cases, so nothing to worry
* about */
startJob("Deleted during dispatch", &test);
handles[2].delete = handles[3].watch;
ret = write(handles[2].pipeFD[1], &one, 1);
ret = write(handles[3].pipeFD[1], &one, 1);
ret = safewrite(handles[2].pipeFD[1], &one, 1);
ret = safewrite(handles[3].pipeFD[1], &one, 1);
if (finishJob(2, -1) != EXIT_SUCCESS)
return EXIT_FAILURE;
@ -361,7 +362,7 @@ mymain(int argc, char **argv)
/* Extreme fun, lets delete ourselves during dispatch */
startJob("Deleted during dispatch", &test);
handles[2].delete = handles[2].watch;
ret = write(handles[2].pipeFD[1], &one, 1);
ret = safewrite(handles[2].pipeFD[1], &one, 1);
if (finishJob(2, -1) != EXIT_SUCCESS)
return EXIT_FAILURE;
@ -410,7 +411,7 @@ mymain(int argc, char **argv)
/* NB: this case is subject to a bit of a race condition.
* Only 1 time in 3 does the 2nd write get triggered by
* before poll() exits for the first write(). We don't
* before poll() exits for the first safewrite(). We don't
* see a hard failure in other cases, so nothing to worry
* about */
virEventUpdateTimeoutImpl(timers[2].timer, 100);