MXS-2014 Add proper OOM support

Not that I think it ever will be needed...
This commit is contained in:
Johan Wikman
2018-08-15 22:32:30 +03:00
parent 85b68c439a
commit a586aa13c4
2 changed files with 38 additions and 20 deletions

View File

@ -807,3 +807,8 @@ int mxb_log_message(int priority,
return err;
}
int mxb_log_oom(const char* message)
{
return this_unit.sLogger->write(message, strlen(message)) ? 0 : -1;
}