summaryrefslogtreecommitdiffhomepage
path: root/src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/exec.c b/src/exec.c
index 72e718c..4758440 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -863,17 +863,6 @@ static void assign_temp(const simple_cmd *sc) {
}
/**
- * @brief Run an external command.
- *
- * @param sc The prepared command.
- * @param flags EV_EXIT allows replacing the shell with exec.
- * @param in Descriptor for its stdin, or -1.
- * @param out Descriptor for its stdout, or -1.
- * @param async When not NULL, receives the pid and the command is not
- * waited for (pipeline stages, `&`, command substitution).
- * @return The exit status. 0 for an async launch.
- */
-/**
* @brief Apply `_TAG_REDIR_*` assignments given on an external command.
*
* Assignments before an external command go only into its environment,
@@ -918,6 +907,17 @@ static void tag_prefix_end(const tag_mode saved[3], int in, int out) {
memcpy(tag_redir, saved, sizeof tag_redir);
}
+/**
+ * @brief Run an external command.
+ *
+ * @param sc The prepared command.
+ * @param flags EV_EXIT allows replacing the shell with exec.
+ * @param in Descriptor for its stdin, or -1.
+ * @param out Descriptor for its stdout, or -1.
+ * @param async When not NULL, receives the pid and the command is not
+ * waited for (pipeline stages, `&`, command substitution).
+ * @return The exit status. 0 for an async launch.
+ */
static int run_external(simple_cmd *sc, unsigned flags, int in, int out,
pid_t *async) {
const node *n = sc->n;