X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=process.cpp;h=1cc6a73dfbdb163453be30797756c3686056ea6a;hb=c03d51cbbfe9f4f8a28dbabbfc068573a1842b74;hp=0a8c18b60d322c119e934fa84475db40301d999b;hpb=54438652fac1f4f8dc6120bbfa8aac766aa656d3;p=nssm.git diff --git a/process.cpp b/process.cpp index 0a8c18b..1cc6a73 100644 --- a/process.cpp +++ b/process.cpp @@ -208,8 +208,6 @@ int kill_console(nssm_service_t *service) { return 2; case ERROR_ACCESS_DENIED: - /* Maybe we already allocated a console for output. */ - if (service->stdin_path[0] || service->stdout_path[0] || service->stderr_path[0]) break; default: /* We already have a console. */ log_event(EVENTLOG_ERROR_TYPE, NSSM_EVENT_ATTACHCONSOLE_FAILED, service->name, error_string(ret), 0);