[beast: 27/47] EBEAST: immediately exit with non-0 if the renderer crashes or aborts
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 27/47] EBEAST: immediately exit with non-0 if the renderer crashes or aborts
- Date: Sat, 2 Sep 2017 00:44:12 +0000 (UTC)
commit 7df33024d01e9ae571683d1e7422ba160140a1c2
Author: Tim Janik <timj gnu org>
Date: Fri May 26 00:41:09 2017 +0200
EBEAST: immediately exit with non-0 if the renderer crashes or aborts
Signed-off-by: Tim Janik <timj gnu org>
ebeast/main.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/ebeast/main.js b/ebeast/main.js
index 2fa80ac..7983565 100644
--- a/ebeast/main.js
+++ b/ebeast/main.js
@@ -131,6 +131,9 @@ function create_window ()
win.loadURL ('file:///' + __dirname + '/index.html');
// win.webContents.openDevTools();
win.on ('closed', () => { win = null; });
+
+ win.webContents.on ('crashed', function () { Eapp.exit (-127); });
+
}
Eapp.on ('ready', create_window); // create window once everything is loaded
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]