summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/prserv
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-08 23:31:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-09 14:27:56 +0100
commit289007e5ebd82e7cf61a20c6afd0206e0037ce0d (patch)
tree2196b8e402558499cbf2e54c2f9880b4e52de798 /bitbake/lib/prserv
parent384533bdb47af2c3a0f3faea8879e8f3cb6f39f9 (diff)
downloadpoky-289007e5ebd82e7cf61a20c6afd0206e0037ce0d.tar.gz
bitbake: utils: Add signal_on_parent_exit() function
Add a new bb.utils.signal_on_parent_exit() function so that a process can register to recieve a signal when the parent dies. There is no POSIX standard for this and the implementation is Linux specific. Alternatives would be having an open pipe or polling os.getppid() for changes but this seems more effective and less invasive to most of bitbake's code structure. We need to be able to determine when parents die to ensure child processes stop running in a variety of circumstances to avoid locks being held and ensure clean shutdown. Roughly based on https://gist.github.com/evansd/2346614 (Bitbake rev: 34974f5e30e9b09c016481e4c81c156a5f379784) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/prserv')
0 files changed, 0 insertions, 0 deletions