mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
Terminate the log with one last message.
Instead of just closing the log when everything is done, put one more message in stating that we're actually terminating. Users or scripts that look at the Xorg.log will then know that a) the server has terminated properly and b) why the server terminated (to some degree, given that most real-world errors will be caused by AbortServer()). Acked-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Tested-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Tested-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
01de08c7d2
commit
f51e42f583
16 changed files with 47 additions and 38 deletions
13
include/os.h
13
include/os.h
|
|
@ -459,8 +459,15 @@ typedef struct {
|
|||
/* stuff for FlushCallback */
|
||||
extern _X_EXPORT CallbackListPtr FlushCallback;
|
||||
|
||||
extern _X_EXPORT void AbortDDX(void);
|
||||
extern _X_EXPORT void ddxGiveUp(void);
|
||||
enum ExitCode {
|
||||
EXIT_NO_ERROR = 0,
|
||||
EXIT_ERR_ABORT = 1,
|
||||
EXIT_ERR_CONFIGURE = 2,
|
||||
EXIT_ERR_DRIVERS = 3,
|
||||
};
|
||||
|
||||
extern _X_EXPORT void AbortDDX(enum ExitCode error);
|
||||
extern _X_EXPORT void ddxGiveUp(enum ExitCode error);
|
||||
extern _X_EXPORT int TimeSinceLastInputEvent(void);
|
||||
|
||||
/* strcasecmp.c */
|
||||
|
|
@ -508,7 +515,7 @@ typedef enum {
|
|||
} MessageType;
|
||||
|
||||
extern _X_EXPORT const char *LogInit(const char *fname, const char *backup);
|
||||
extern _X_EXPORT void LogClose(void);
|
||||
extern _X_EXPORT void LogClose(enum ExitCode error);
|
||||
extern _X_EXPORT Bool LogSetParameter(LogParameter param, int value);
|
||||
extern _X_EXPORT void LogVWrite(int verb, const char *f, va_list args) _X_ATTRIBUTE_PRINTF(2,0);
|
||||
extern _X_EXPORT void LogWrite(int verb, const char *f, ...) _X_ATTRIBUTE_PRINTF(2,3);
|
||||
|
|
|
|||
Loading…
Reference in a new issue