Cotal TypeScript packages
    Preparing search index...

    Function startWin32Custodian

    • Start a detached custodian that launches program in its job. The launch and the capability reach it on stdin, never in its arguments or environment. It answers on stdout once the program runs, and the custodian's own pin is read here before the answer is accepted. spawned receives the custodian's pin and pipe as soon as it runs, before its program does.

      Parameters

      • input: {
            args: readonly string[];
            cwd: string;
            env: ProcessEnv;
            instanceId: string;
            log: string;
            program: string;
        }
      • key: Buffer
      • Optionalspawned: (custodian: ProcessIdentityRecord, pipe: string) => void

      Returns Promise<Win32Custody & { process: ProcessIdentityRecord }>