Prevent file handles to leak into nodejs server application

This commit is contained in:
Emil Axelsson
2019-02-13 17:08:29 +01:00
parent a1a1ee71db
commit 075625c223
4 changed files with 19 additions and 8 deletions
+2 -2
View File
@@ -158,8 +158,8 @@ void WebGuiModule::startProcess() {
#endif
const std::string command = "\"" + nodePath + "\" "
+ "\"" + _entryPoint.value() + "\"" +
" --directory \"" + _webDirectory.value() + "\"" +
+ "\"" + absPath(_entryPoint.value()) + "\"" +
" --directory \"" + absPath(_webDirectory.value()) + "\"" +
" --http-port \"" + std::to_string(_port.value()) + "\" " +
" --ws-address \"" + _address.value() + "\"" +
" --ws-port \"" + std::to_string(webSocketPort) + "\"" +