Skip to content

Commit

Permalink
Pass spawn id to the subprocess command line to make it more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert committed Dec 19, 2024
1 parent 634c70e commit 2580e4e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ export class DenoRuntimeSubprocessController extends EventEmitter {

private state: 'uninitialized' | 'ready' | 'invalid' | 'restarting' | 'unknown' | 'stopped';

/**
* Incremental id that keeps track of how many times we've spawned a process for this app
*/
private spawnId = 0;

private readonly debug: debug.Debugger;

private readonly options = {
Expand Down Expand Up @@ -149,6 +154,8 @@ export class DenoRuntimeSubprocessController extends EventEmitter {
denoWrapperPath,
'--subprocess',
this.appPackage.info.id,
'--spawnId',
String(this.spawnId++),
];

// If the app doesn't request any permissions, it gets the default set of permissions, which includes "networking"
Expand Down

0 comments on commit 2580e4e

Please sign in to comment.