0.3.8 init state machine broken?
I've found 3 and fixed (patched, more like) 2 problems. My question is - has this been found and fixed already in later versions?
Details:
1) The test below makes init dump core and restart, triggered by an assert in job.c::
service
respawn
script
exit 0
end script
post-start script
sleep 4
end script
As far as I could see JOB_RUNNING was legitimate, so I updated the assert condition to allow it, and respawning worked.
2) after the change above, stopping this job produced another core. This time PROCESS_POST_START got JOB_WAITING.
I patched this as well by allowing JOB_WAITING and setting state and stop to FALSE in this case.
I'm not sure the second fix is a good one.
I tried to compare against 0.5, but it's been re-written in C++, so there's no simple diff.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- upstart Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alex Nekrasov
- Solved:
- Last query:
- Last reply: