Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

nohup命令运行oicq报错 #232

Closed
TioaChan opened this issue Oct 8, 2021 · 1 comment
Closed

nohup命令运行oicq报错 #232

TioaChan opened this issue Oct 8, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@TioaChan
Copy link

TioaChan commented Oct 8, 2021

Node.js Version

v12.20.1

Package Version

latest

Login Protocol

aPad

Bug Description

使用nohup运行oicq时,登录完成后程序报错停止。

nohup oicq * &

Log Details

※你已成功登录,此控制台有简单的指令可用于调试。
※发言: send <target> <message>
※下线结束程序: bye
※执行任意代码: eval <code>
events.js:291
      throw er; // Unhandled 'error' event
      ^

Error: EBADF: bad file descriptor, read
Emitted 'error' event on ReadStream instance at:
    at internal/fs/streams.js:191:14
    at FSReqCallback.wrapper [as oncomplete] (fs.js:520:5) {
  errno: -9,
  code: 'EBADF',
  syscall: 'read'
}
@takayama-lily takayama-lily added the bug Something isn't working label Oct 24, 2021
@takayama-lily
Copy link
Owner

stdin暴死了,加个on("error")就行了,建议使用pm2

takayama-lily added a commit that referenced this issue Oct 28, 2021
takayama-lily added a commit that referenced this issue Oct 30, 2021
takayama-lily added a commit that referenced this issue Dec 8, 2021
close #232
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants