Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR causes the start time of each spawned process to be recorded in the
processes.json
file. This allowschip
to detect when a new process is using the same PID as a process it had formerly spawned.One scenario that can cause this to happen is rebooting your machine while chip processes are running. When your machine reboots, those chip processes are all gone. But your machine might use some PIDs that chip has stored in
processes.json
for system startup processes. Chip will then see these processes (e.g. withchip list
) and think it created them because they have the same PID.Recording and comparing the start time of processes in addition to their PID resolves this. In the example above, the start time of the new system processes would differ because they would have started after the reboot, but the
chip.yml
would have recorded start times from before the reboot.