bug#76790: [Shepherd] Handling process termination before service is running

2025-03-09 Thread Ludovic Courtès
Ludovic Courtès skribis: > This is due to a race condition: the process terminates before its > service goes from ‘starting’ to ‘running’. > > By the time the service controller calls ‘monitor-service-process’, the > process has already terminated, so the process monitor replies 0 to the > 'await

bug#76790: [Shepherd] Handling process termination before service is running

2025-03-06 Thread Ludovic Courtès
While on a quest for flaky tests in the Shepherd, I found a genuine bug that would manifest with this ‘tests/basic.sh’ failure: --8<---cut here---start->8--- + herd -s t-socket-21679 status test-run-from-nonexistent-directory + sleep 0.5 + herd -s t-socket-21679