-
Committer:
Scott Moser
-
Date:
2016-09-22 20:48:25 UTC
-
Revision ID:
smoser@ubuntu.com-20160922204825-xcy2vyzz48vm21tf
adding code i was playing with.
The intent of this would be for curtin to do something like the main
here. Instead of invoking the shell reboot function, it would
search for a parent that it liked (such as one named cloud-init).
If there was no good looking parent, then it would use itself.
So basically:
- select a process P to wait until it is gone.
- fork
- exit from main process
- second process polls for process P to have left the building
- second process (conditionally) invokes the reboot.