summaryrefslogtreecommitdiffstats
path: root/util/system/shellcommand.cpp
diff options
context:
space:
mode:
authorvvvv <[email protected]>2022-02-10 16:46:34 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:34 +0300
commitad94e93a059747f4fc3d7add88d1a83daf40b733 (patch)
tree731d57e580bd143e1136e7747f13b26e6bac95d0 /util/system/shellcommand.cpp
parent298c6da79f1d8f35089a67f463f0b541bec36d9b (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/shellcommand.cpp')
-rw-r--r--util/system/shellcommand.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/shellcommand.cpp b/util/system/shellcommand.cpp
index b1989b5c8c3..11eff0d3afa 100644
--- a/util/system/shellcommand.cpp
+++ b/util/system/shellcommand.cpp
@@ -322,12 +322,12 @@ public:
delete WatchThread;
}
-
-#if defined(_win_)
- if (Pid) {
- CloseHandle(Pid);
- }
-#endif
+
+#if defined(_win_)
+ if (Pid) {
+ CloseHandle(Pid);
+ }
+#endif
}
inline void AppendArgument(const TStringBuf argument) {
@@ -622,7 +622,7 @@ void TShellCommand::TImpl::StartProcess(TShellCommand::TImpl::TPipes& pipes) {
out << "Process was not created: " << LastSystemErrorText() << " command text was: '" << GetAString(cmdcopy.Data()) << "'";
}
Pid = process_info.hProcess;
- CloseHandle(process_info.hThread);
+ CloseHandle(process_info.hThread);
DBG(Cerr << "created process id " << Pid << " in dir: " << cwd << ", cmd: " << cmdcopy.Data() << Endl);
}
#endif