diff options
author | Siri Hansen <[email protected]> | 2011-11-15 11:27:58 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2011-11-15 11:27:58 +0100 |
commit | 96fcb3f864f787fd3d74f20189eed7a1aba81cb4 (patch) | |
tree | 269b3ef8619edfb0a31e9c9c08faaf7edd109b3f /lib/kernel/doc | |
parent | 6acdb64f208e26d78c7f55e6206b75b948e63daa (diff) | |
download | otp-96fcb3f864f787fd3d74f20189eed7a1aba81cb4.tar.gz otp-96fcb3f864f787fd3d74f20189eed7a1aba81cb4.tar.bz2 otp-96fcb3f864f787fd3d74f20189eed7a1aba81cb4.zip |
Add env var shutdown_timeout to kernel to avoid deadlock on node shutdown
When a node is shutting down, application_controller will do
exit(Pid,shutdown) on all application masters, and wait for
{'EXIT',Pid,_}. If, for some reason, the application master does not
terminate then application_controller will hang forever waiting for
this 'EXIT' message.
To overcome this problem, a configurable timer is added to kernel -
the enviroment variable 'shutdown_timeout'. If this variable is set to
a positive integer T, application_controller will do exit(Pid,kill)
after T milli seconds if no 'EXIT' message is received.
Diffstat (limited to 'lib/kernel/doc')
0 files changed, 0 insertions, 0 deletions