Don't use == to test IO conditions
2001-06-18 Bradford Hovinen <hovinen@ximian.com> * config-log.c (slave_data_cb): Don't use == to test IO conditions
This commit is contained in:
parent
c7af228de9
commit
aa7315ed93
3 changed files with 21 additions and 3 deletions
|
@ -411,7 +411,19 @@ location_do_rollback (Location *location, gchar *backend_id, xmlDocPtr doc)
|
|||
|
||||
output = fdopen (fd, "w");
|
||||
xmlDocDump (output, doc);
|
||||
fclose (output);
|
||||
|
||||
DEBUG_MSG ("Done dumping data; flushing and closing output stream");
|
||||
|
||||
if (fflush (output) == EOF) {
|
||||
g_critical ("%s: Could not dump buffer: %s",
|
||||
__FUNCTION__, g_strerror (errno));
|
||||
}
|
||||
|
||||
if (fclose (output) == EOF) {
|
||||
g_critical ("%s: Could not close output stream: %s",
|
||||
__FUNCTION__, g_strerror (errno));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue