aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/shellcommand.h
diff options
context:
space:
mode:
authorjimmy <jimmy@yandex-team.ru>2022-02-10 16:49:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:38 +0300
commitaffdafdb1fc09bf0bfc384355143ee6db9e90046 (patch)
treeda80bda4720043db2e41dfd1c7fd04de32021fd3 /util/system/shellcommand.h
parent4e4faf8d95a4916a49f6674f3ff50e13799fbaa6 (diff)
downloadydb-affdafdb1fc09bf0bfc384355143ee6db9e90046.tar.gz
Restoring authorship annotation for <jimmy@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/shellcommand.h')
-rw-r--r--util/system/shellcommand.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/util/system/shellcommand.h b/util/system/shellcommand.h
index 8730627fe5..8498953ff6 100644
--- a/util/system/shellcommand.h
+++ b/util/system/shellcommand.h
@@ -67,33 +67,33 @@ public:
/**
* @brief clear signal mask from parent process. If true, child process
- * clears the signal mask inherited from the parent process; otherwise
- * child process retains the signal mask of the parent process.
- *
- * @param clearSignalMask true if child process should clear signal mask
- * @note in default child process inherits signal mask.
- * @return self
- */
- inline TShellCommandOptions& SetClearSignalMask(bool clearSignalMask) {
- ClearSignalMask = clearSignalMask;
- return *this;
- }
-
- /**
+ * clears the signal mask inherited from the parent process; otherwise
+ * child process retains the signal mask of the parent process.
+ *
+ * @param clearSignalMask true if child process should clear signal mask
+ * @note in default child process inherits signal mask.
+ * @return self
+ */
+ inline TShellCommandOptions& SetClearSignalMask(bool clearSignalMask) {
+ ClearSignalMask = clearSignalMask;
+ return *this;
+ }
+
+ /**
* @brief set close-on-exec mode. If true, all file descriptors
- * from the parent process, except stdin, stdout, stderr, will be closed
- * in the child process upon exec().
- *
- * @param closeAllFdsOnExec true if close-on-exec mode is needed
- * @note in default close-on-exec mode is off.
- * @return self
- */
+ * from the parent process, except stdin, stdout, stderr, will be closed
+ * in the child process upon exec().
+ *
+ * @param closeAllFdsOnExec true if close-on-exec mode is needed
+ * @note in default close-on-exec mode is off.
+ * @return self
+ */
inline TShellCommandOptions& SetCloseAllFdsOnExec(bool closeAllFdsOnExec) {
- CloseAllFdsOnExec = closeAllFdsOnExec;
- return *this;
- }
-
- /**
+ CloseAllFdsOnExec = closeAllFdsOnExec;
+ return *this;
+ }
+
+ /**
* @brief set asynchronous mode. If true, task will be run
* in separate thread, and control will be returned immediately
*
@@ -443,14 +443,14 @@ public:
TShellCommand& Run();
/**
- * @brief terminate the execution
- * @note if DetachSession is set, it terminates all procs in command's new process group
- *
- * @return self
- */
+ * @brief terminate the execution
+ * @note if DetachSession is set, it terminates all procs in command's new process group
+ *
+ * @return self
+ */
TShellCommand& Terminate();
-
- /**
+
+ /**
* @brief wait until the execution is finished
*
* @return self