Bugfix: create the directory for storing the restart state (Thanks hjem)

fixes #1303
This commit is contained in:
Michael Stapelberg
2014-06-27 09:04:51 +02:00
parent 653b945376
commit c159fc4197
5 changed files with 93 additions and 5 deletions

View File

@ -50,6 +50,12 @@ typedef void(*handler_t)(int, uint8_t*, int, uint32_t, uint32_t);
int size, uint32_t message_size, \
uint32_t message_type)
/**
* Emulates mkdir -p (creates any missing folders)
*
*/
bool mkdirp(const char *path);
/**
* Handler for activity on the listening socket, meaning that a new client
* has just connected and we should accept() him. Sets up the event handler