dsh-lark-bot 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -20219,7 +20219,7 @@ async function runSupervise(options, deps = {}) {
|
|
|
20219
20219
|
mkdirSync(dirname17(logFile), { recursive: true });
|
|
20220
20220
|
const logFd = openSync(logFile, "a");
|
|
20221
20221
|
const writeStatus = async (state, childPid, restarts2) => {
|
|
20222
|
-
const processIdentity = await readLinuxProcessIdentity(process.pid);
|
|
20222
|
+
const processIdentity = await (deps.readProcessIdentity ?? readLinuxProcessIdentity)(process.pid);
|
|
20223
20223
|
const status = {
|
|
20224
20224
|
pid: process.pid,
|
|
20225
20225
|
childPid,
|
|
@@ -20255,8 +20255,9 @@ async function runSupervise(options, deps = {}) {
|
|
|
20255
20255
|
stdio: ["ignore", logFd, logFd]
|
|
20256
20256
|
});
|
|
20257
20257
|
child = spawned;
|
|
20258
|
+
const exited = waitForExit(spawned);
|
|
20258
20259
|
await writeStatus("running", spawned.pid, restarts);
|
|
20259
|
-
await
|
|
20260
|
+
await exited;
|
|
20260
20261
|
if (forceStopTimer) {
|
|
20261
20262
|
clearTimeout(forceStopTimer);
|
|
20262
20263
|
forceStopTimer = void 0;
|