~smoser/curtin/trunk.lp1604962

Viewing all changes in revision 427.

  • 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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: