Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9556ef3

Browse filesBrowse files
fhinkelMylesBorins
authored andcommitted
vm: add error message if we abort
Add an error message in watchdog if we abort because uv_loop_init fails. PR-URL: #8634 Fixes: #8555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent acbe4d3 commit 9556ef3
Copy full SHA for 9556ef3

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎src/node_watchdog.cc‎

Copy file name to clipboardExpand all lines: src/node_watchdog.cc
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ Watchdog::Watchdog(Environment* env, uint64_t ms) : env_(env),
1414
loop_ = new uv_loop_t;
1515
CHECK(loop_);
1616
rc = uv_loop_init(loop_);
17-
CHECK_EQ(0, rc);
17+
if (rc != 0) {
18+
FatalError("node::Watchdog::Watchdog()",
19+
"Failed to initialize uv loop.");
20+
}
1821

1922
rc = uv_async_init(loop_, &async_, &Watchdog::Async);
2023
CHECK_EQ(0, rc);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.