Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 554c1c5

Browse files
committed
protect against possible concurrency bug
1 parent 885ea08 commit 554c1c5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/v8/script.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ typedef struct {
8080
void* breaker(void *d) {
8181
timeout_data* data = (timeout_data*)d;
8282
usleep(data->timeout*1000);
83+
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
8384
v8::V8::TerminateExecution(data->isolate);
8485
return NULL;
8586
}

0 commit comments

Comments
 (0)