2c723d7e84
* wip: enable crashpad for node processes fix: add PID testing method wip: plumb fd into child_process in node * node::ProcessInitializationFlags::kNoDefaultSignalHandling * chore: clean up debug logging * chore: gate platform includes * test: clean up node process test * fix: pass pid in node_main * chore: cleanup impl * chore: fixup patch method definition * fix: expose bound methods to node_main * fix: remove bound methods * fix: crashpad connection for all ELECTRON_RUN_AS_NODE processes * chore: fix typo * chore: address review feedback * chore: delay crashpad initialization * chore: ensure options.env, code hygiene * chore: add argv test, check for process.env over {} * fix: fix test, return options.env immutability Co-authored-by: VerteDinde <keeleymhammond@gmail.com> Co-authored-by: Jeremy Rose <jeremya@chromium.org> Co-authored-by: VerteDinde <vertedinde@electronjs.org>
9 lines
263 B
JavaScript
9 lines
263 B
JavaScript
const path = require('path');
|
|
const childProcess = require('child_process');
|
|
|
|
process.on('message', function () {
|
|
process.send(process.argv);
|
|
});
|
|
|
|
// Allow time to send args, then crash the app.
|
|
setTimeout(() => process.nextTick(() => process.crash()), 10000);
|