inspector: process.exit should wait for inspector
Checklist
-
make -j4 test
(UNIX) orvcbuild test nosign
(Windows) passes -
the commit message follows commit guidelines
Affected 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: nodejs/node#7088