-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
inspector: process.exit should wait for inspector #7252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lgtm |
LGTM |
For bonus points: factor out that magic number 32 into a constant and update PlatformInit() and WaitForInspectorDisconnect(). |
@bnoordhuis I introduced a constant and rebased the CL |
@@ -187,6 +187,7 @@ static v8::Platform* default_platform; | |||
|
|||
#ifdef __POSIX__ | |||
static uv_sem_t debug_semaphore; | |||
static const short NUM_SIGNALS = 32; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you name it e.g. kNumSignals
or kMaxSignal
? ALL_CAPS should be reserved for macros. LGTM apart from that.
@bnoordhuis I renamed to |
LGTM. ppcbe-ubuntu1404 seems to be stuck but everything else is green. |
Thanks, landed as 6626919. |
I am excluding this one from the next v6.x release since it is just a semver patch release. Once the inspector lands in v6.x, we can remove the dont-land-on-v6.x label. Thanks! |
Checklist
make -j4 test
(UNIX) orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
inspector
Description of change
Waits for the inspector frontend to detach when process.exit is called. This enables the user to analyse the profiling information.
Fixes: #7088