--- a/core/daemon_cmd.c +++ a/core/daemon_cmd.c @@ -262,7 +262,12 @@ int cmd_paint(void **args) { char ret = 0; + fbsplash_profile("cmd_paint: handler entry point\n"); + pthread_mutex_lock(&mtx_paint); + + fbsplash_profile("cmd_paint: mutex locked\n"); + if (!theme) { ret = -1; goto out; @@ -274,6 +279,9 @@ int cmd_paint(void **args) fbsplashr_render_screen(theme, false, false, FBSPL_EFF_NONE); out: pthread_mutex_unlock(&mtx_paint); + + fbsplash_profile("cmd_paint: exit point\n"); + return ret; }