mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 15:58:20 +02:00
main: write pid file and daemonize last
These actions serve to notify plymouthd's readiness. We should make sure they are run after plymouthd is actually done starting up.
This commit is contained in:
parent
b1e9022f11
commit
f87d295aa8
1 changed files with 5 additions and 5 deletions
10
src/main.c
10
src/main.c
|
|
@ -2222,6 +2222,11 @@ main (int argc,
|
|||
return EX_UNAVAILABLE;
|
||||
}
|
||||
|
||||
state.progress = ply_progress_new ();
|
||||
|
||||
ply_progress_load_cache (state.progress,
|
||||
get_cache_file_for_mode (state.mode));
|
||||
|
||||
if (pid_file != NULL)
|
||||
write_pid_file (pid_file);
|
||||
|
||||
|
|
@ -2232,11 +2237,6 @@ main (int argc,
|
|||
return EX_UNAVAILABLE;
|
||||
}
|
||||
|
||||
state.progress = ply_progress_new ();
|
||||
|
||||
ply_progress_load_cache (state.progress,
|
||||
get_cache_file_for_mode (state.mode));
|
||||
|
||||
ply_trace ("entering event loop");
|
||||
exit_code = ply_event_loop_run (state.loop);
|
||||
ply_trace ("exited event loop");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue