Instead of just terminating right there and then, we cancel the context, and let the daemon exit cleanly. This make take a few seconds, as the node builder and its child processes do not care too much about the context state while building nodes, but this can be improved by injecting checks for ctx.Done() before time-consuming steps.
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| cli | 正在载入提交数据... | |
| files | 正在载入提交数据... | |
| http | 正在载入提交数据... | |
| argument.go | 正在载入提交数据... | |
| channelmarshaler.go | 正在载入提交数据... | |
| command.go | 正在载入提交数据... | |
| command_test.go | 正在载入提交数据... | |
| option.go | 正在载入提交数据... | |
| option_test.go | 正在载入提交数据... | |
| request.go | 正在载入提交数据... | |
| response.go | 正在载入提交数据... | |
| response_test.go | 正在载入提交数据... |