Working on linux now, better logging
This commit is contained in:
Binary file not shown.
@@ -148,8 +148,9 @@ bool runRktWebview(Handle_t *handler)
|
|||||||
|
|
||||||
posix_spawn_file_actions_t action;
|
posix_spawn_file_actions_t action;
|
||||||
posix_spawn_file_actions_init(&action);
|
posix_spawn_file_actions_init(&action);
|
||||||
|
unlink(log_file.c_str());
|
||||||
posix_spawn_file_actions_addopen(&action, STDOUT_FILENO, log_file.c_str(), O_CREAT|O_WRONLY, 0600);
|
posix_spawn_file_actions_addopen(&action, STDOUT_FILENO, log_file.c_str(), O_CREAT|O_WRONLY, 0600);
|
||||||
posix_spawn_file_actions_addopen(&action, STDERR_FILENO, log_file.c_str(), O_WRONLY|O_APPEND, 0600);
|
posix_spawn_file_actions_addopen(&action, STDERR_FILENO, log_file.c_str(), O_WRONLY, 0600);
|
||||||
|
|
||||||
int r = posix_spawn(&handler->rkt_webview_prg_pid, rkt_webview_prg_path, &action, nullptr, argv, environ);
|
int r = posix_spawn(&handler->rkt_webview_prg_pid, rkt_webview_prg_path, &action, nullptr, argv, environ);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user