X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-pty%2Flib%2Fconpty_console_list_agent.js;fp=node_modules%2Fnode-pty%2Flib%2Fconpty_console_list_agent.js;h=e5217ef657b54b3c89e3ff55f893f60a53d4db61;hp=0000000000000000000000000000000000000000;hb=e79e4a5a87f3e84f7c1777f10a954453a69bf540;hpb=4339da12467b75fb8b6ca831f4bf0081c485ed2c diff --git a/node_modules/node-pty/lib/conpty_console_list_agent.js b/node_modules/node-pty/lib/conpty_console_list_agent.js new file mode 100644 index 0000000..e5217ef --- /dev/null +++ b/node_modules/node-pty/lib/conpty_console_list_agent.js @@ -0,0 +1,20 @@ +"use strict"; +/** + * Copyright (c) 2019, Microsoft Corporation (MIT License). + * + * This module fetches the console process list for a particular PID. It must be + * called from a different process (child_process.fork) as there can only be a + * single console attached to a process. + */ +var getConsoleProcessList; +try { + getConsoleProcessList = require('../build/Release/conpty_console_list.node').getConsoleProcessList; +} +catch (err) { + getConsoleProcessList = require('../build/Debug/conpty_console_list.node').getConsoleProcessList; +} +var shellPid = parseInt(process.argv[2], 10); +var consoleProcessList = getConsoleProcessList(shellPid); +process.send({ consoleProcessList: consoleProcessList }); +process.exit(0); +//# sourceMappingURL=conpty_console_list_agent.js.map \ No newline at end of file