1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | var getConsoleProcessList;
|
10 | try {
|
11 | getConsoleProcessList = require('../build/Release/conpty_console_list.node').getConsoleProcessList;
|
12 | }
|
13 | catch (err) {
|
14 | getConsoleProcessList = require('../build/Debug/conpty_console_list.node').getConsoleProcessList;
|
15 | }
|
16 | var shellPid = parseInt(process.argv[2], 10);
|
17 | var consoleProcessList = getConsoleProcessList(shellPid);
|
18 | process.send({ consoleProcessList: consoleProcessList });
|
19 | process.exit(0);
|
20 |
|
\ | No newline at end of file |