mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 00:37:01 +00:00
print include system error message when output fails
Users want to know why write fail - was it because disk full, or destination read-only, or IO error, and so on. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
f5cd7383e4
commit
8fca82f148
2 changed files with 13 additions and 13 deletions
|
|
@ -405,7 +405,7 @@ void clean_up(void)
|
|||
|
||||
/* Just in case there something in buffers */
|
||||
if (fflush(NULL))
|
||||
error(0, 0, "clean_up: fflush");
|
||||
error(EXIT_FAILURE, errno, "clean_up: fflush");
|
||||
free(config.dhcpdconf_file);
|
||||
free(config.dhcpdlease_file);
|
||||
free(config.output_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue