Attempt to log distro name/version in Unix crashlog.

Factor out fork/execve/read stdout code into own function.
This commit is contained in:
Jonathan G Rennison
2016-06-12 20:58:52 +01:00
parent 8d078acb4e
commit 62631cba02
3 changed files with 115 additions and 74 deletions

View File

@@ -44,6 +44,14 @@ protected:
*/
virtual char *LogCompiler(char *buffer, const char *last) const;
/**
* Writes OS' version detail to the buffer, if available.
* @param buffer The begin where to write at.
* @param last The last position in the buffer to write to.
* @return the position of the \c '\0' character after the buffer.
*/
virtual char *LogOSVersionDetail(char *buffer, const char *last) const;
/**
* Writes actually encountered error to the buffer.
* @param buffer The begin where to write at.