mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 08:17:22 +00:00
fix(prompt): add stdin.pause() to prevent process hang after password input
Fixes #236. The password() method called resume() on stdin but never paused it in cleanup, keeping the event loop alive indefinitely.
This commit is contained in:
@@ -174,6 +174,7 @@ export class InteractivePrompt {
|
||||
process.stdin.setRawMode(false);
|
||||
}
|
||||
process.stdin.removeListener('data', onData);
|
||||
process.stdin.pause();
|
||||
};
|
||||
|
||||
const onData = (data: Buffer): void => {
|
||||
|
||||
Reference in New Issue
Block a user