Move workspace pid code to root.c

This commit is contained in:
Ryan Dwyer 2018-08-04 14:01:49 +10:00
parent 04489ff420
commit 30e7e0f7c7
6 changed files with 121 additions and 119 deletions

View file

@ -78,7 +78,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
waitpid(pid, NULL, 0);
if (child > 0) {
wlr_log(WLR_DEBUG, "Child process created with pid %d", child);
workspace_record_pid(child);
root_record_workspace_pid(child);
} else {
return cmd_results_new(CMD_FAILURE, "exec_always",
"Second fork() failed");