diff options
| author | Adrian Torres <adt@odoo.com> | 2017-11-27 11:12:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-27 11:12:27 +0100 |
| commit | ac5ba4a2b0ab75a42d86a5aa04a0e837de64ffff (patch) | |
| tree | 8cbdfb07e87a7f0d64b4eac1e5ca6a51c0533de1 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | b46830858f44b83b185df4f83e20aad69b48d330 (diff) | |
[FIX] server: do not restart if phoenix is True (#21209)
Before this commit, saving a file being watched by watchdog
(--dev=reload) with vim (and possibly other text editors) would
crash the server via a KeyboardInterrupt error.
This happens because vim, emacs cause multiple filesystem events to
happen when saving a single file, the FSWatcher registers these events
as multiple SIGHUPs which in turn calls restart() multiple times in a
very small amount of time which makes the KeyboardInterrupts completely
shut down the server
This is fixed by only calling restart() if odoo.phoenix is False, since
catching a SIGHUP sets it to true.
Fixes #21178
Special thanks to @odony for the help :)
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
