X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=io.cpp;h=5331188fcaf69666a54e4f68fc0584114e9ba97a;hb=9f3d08676d86c939b864b4868d99b6e5772d95c8;hp=501f605a1d087be0524cb8a167ab8c777e16b8b6;hpb=5b9e64a9ae1fbf1254c9c246e5b123d3aa77a37a;p=nssm.git diff --git a/io.cpp b/io.cpp index 501f605..5331188 100644 --- a/io.cpp +++ b/io.cpp @@ -121,7 +121,7 @@ int get_output_handles(HKEY key, STARTUPINFO *si) { /* stderr */ if (get_createfile_parameters(key, NSSM_REG_STDERR, path, &sharing, NSSM_STDERR_SHARING, &disposition, NSSM_STDERR_DISPOSITION, &flags, NSSM_STDERR_FLAGS)) return 6; if (path[0]) { - /* Same as stdin? */ + /* Same as stdout? */ if (str_equiv(path, stdout_path)) { /* Two handles to the same file will create a race. */ if (! DuplicateHandle(GetCurrentProcess(), si->hStdOutput, GetCurrentProcess(), &si->hStdError, 0, true, DUPLICATE_SAME_ACCESS)) {