Timestamp 0 is a valid timestamp and we can't use that as an uninitialized
timestamp.
/* if desktop-shell dies more than 5 times in 30 seconds, give up */
time = weston_compositor_get_time();
- if (shell->child.deathstamp == 0 ||
- time - shell->child.deathstamp > 30000) {
+ if (time - shell->child.deathstamp > 30000) {
shell->child.deathstamp = time;
shell->child.deathcount = 0;
}
shell, bind_screensaver) == NULL)
return -1;
+ shell->child.deathstamp = weston_compositor_get_time();
if (launch_desktop_shell_process(shell) != 0)
return -1;