Skip to content

Commit a1a56cd

Browse files
committed
Linux: WebBrowserComponent: Terminate subprocess if main process crashes
1 parent be58c6d commit a1a56cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ class CommandReceiver
473473

474474
auto actual = read (inChannel, &dst[pos], static_cast<size_t> (len - pos));
475475

476-
if (actual < 0)
476+
if (actual <= 0)
477477
{
478478
if (errno == EINTR)
479479
continue;

0 commit comments

Comments
 (0)