Don't discard buffer unless >1 second has elapse since console release.
authorDavin McCall <davmac@davmac.org>
Fri, 10 May 2019 13:37:33 +0000 (23:37 +1000)
committerDavin McCall <davmac@davmac.org>
Fri, 10 May 2019 13:37:33 +0000 (23:37 +1000)
commit80ba41b6ccd1506d12c80a8b0175b296e6872886
tree71d3c1d71f19326fe97de49db9a23c7d5c1e0c8d
parent4b02d18f5ad4721211b8e17034d4da4ae3625476
Don't discard buffer unless >1 second has elapse since console release.

If the log subsystem releases the console, the log buffer is normally
discarded when it is re-acquired (so that stale messages are not then
displayed). This change allows for a 1 second window, so that
short-running foreground jobs don't prevent log messages being seen.
src/dinit-log.cc
src/includes/service.h
src/service.cc