|
|
@ -3170,13 +3170,13 @@ int main(int argc, char *argv[]) |
|
|
|
argc = parse_options(core_options, |
|
|
|
argc = parse_options(core_options, |
|
|
|
ARRAY_LENGTH(core_options), argc, argv); |
|
|
|
ARRAY_LENGTH(core_options), argc, argv); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
weston_log_file_open(log); |
|
|
|
|
|
|
|
|
|
|
|
if (!getenv("XDG_RUNTIME_DIR")) { |
|
|
|
if (!getenv("XDG_RUNTIME_DIR")) { |
|
|
|
weston_log(xdg_error_message); |
|
|
|
weston_log(xdg_error_message); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
weston_log_file_open(log); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gettimeofday(&tv, NULL); |
|
|
|
gettimeofday(&tv, NULL); |
|
|
|
brokendown_time = localtime(&tv.tv_sec); |
|
|
|
brokendown_time = localtime(&tv.tv_sec); |
|
|
|
strftime(buffer, sizeof buffer, "%Y-%m-%d %H:%M:%S", brokendown_time); |
|
|
|
strftime(buffer, sizeof buffer, "%Y-%m-%d %H:%M:%S", brokendown_time); |
|
|
|