Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当我control+c 终止master进程的时候,报错 #41

Open
xiaoji121 opened this issue May 21, 2014 · 1 comment
Open

当我control+c 终止master进程的时候,报错 #41

xiaoji121 opened this issue May 21, 2014 · 1 comment

Comments

@xiaoji121
Copy link

/Users/dongming/dev/github/fdserver/node_modules/pm/lib/child.js:271
      handles[i].close();
                 ^
TypeError: Cannot call method 'close' of null
    at /Users/dongming/dev/github/fdserver/node_modules/pm/lib/child.js:271:18
    at Array.forEach (native)
    at Child.stop (/Users/dongming/dev/github/fdserver/node_modules/pm/lib/child.js:270:26)
    at /Users/dongming/dev/github/fdserver/node_modules/pm/lib/master.js:172:19
    at Array.forEach (native)
    at Master.shutdown (/Users/dongming/dev/github/fdserver/node_modules/pm/lib/master.js:171:27)
    at process.<anonymous> (/Users/dongming/dev/github/fdserver/node_modules/pm/lib/master.js:99:13)
    at process.EventEmitter.emit (events.js:98:17)
    at process.<anonymous> (/Users/dongming/dev/github/fdserver/node_modules/pm/lib/master.js:106:15)
    at process.EventEmitter.emit (events.js:92:17)
@xiaoji121
Copy link
Author

貌似这个问题只有在起80端口没有加sudo时会出现,但是应该提示80端口没有启动起来啊

[email protected] ~/dev/github/fdserver $ node master.js
fork { '0': 'server', '1': 71109 }
fork { '0': 'server', '1': 71110 }
fork { '0': 'server', '1': 71111 }
fork { '0': 'server', '1': 71112 }
21 May 19:26:56 - create server: 80
21 May 19:26:56 - create server: 80
21 May 19:26:56 - create server: 80
21 May 19:26:56 - create server: 80
^C
/Users/dongming/dev/github/fdserver/node_modules/pm/lib/child.js:271
      handles[i].close();
                 ^
TypeError: Cannot call method 'close' of null
    at /Users/dongming/dev/github/fdserver/node_modules/pm/lib/child.js:271:18
    at Array.forEach (native)
    at Child.stop (/Users/dongming/dev/github/fdserver/node_modules/pm/lib/child.js:270:26)
    at /Users/dongming/dev/github/fdserver/node_modules/pm/lib/master.js:172:19
    at Array.forEach (native)
    at Master.shutdown (/Users/dongming/dev/github/fdserver/node_modules/pm/lib/master.js:171:27)
    at process.<anonymous> (/Users/dongming/dev/github/fdserver/node_modules/pm/lib/master.js:99:13)
    at process.EventEmitter.emit (events.js:98:17)
    at process.<anonymous> (/Users/dongming/dev/github/fdserver/node_modules/pm/lib/master.js:106:15)
    at process.EventEmitter.emit (events.js:92:17)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant