• R/O
  • SSH
  • HTTPS

yash: Commit


Commit MetaInfo

Revision4014 (tree)
Time2020-04-17 23:56:05
Authormagicant

Log Message

Better placement of comment

Change Summary

Incremental Difference

--- yash/trunk/exec.c (revision 4013)
+++ yash/trunk/exec.c (revision 4014)
@@ -1,6 +1,6 @@
11 /* Yash: yet another shell */
22 /* exec.c: command execution */
3-/* (C) 2007-2019 magicant */
3+/* (C) 2007-2020 magicant */
44
55 /* This program is free software: you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
@@ -798,8 +798,6 @@
798798
799799 current_lineno = c->c_lineno;
800800
801- /* fork first if `type' is E_ASYNC, the command type is subshell,
802- * or there is a pipe. */
803801 finally_exit = (type == E_SELF);
804802 if (finally_exit) {
805803 if (c->c_type == CT_SUBSHELL)
@@ -807,6 +805,8 @@
807805 * subshell directly in this process. */
808806 become_child(false);
809807 } else {
808+ /* fork first if `type' is E_ASYNC, the command type is subshell,
809+ * or there is a pipe. */
810810 if (type == E_ASYNC || c->c_type == CT_SUBSHELL
811811 || pi->pi_fromprevfd >= 0 || pi->pi_tonextfds[PIPE_OUT] >= 0) {
812812 sigtype_T sigtype = (type == E_ASYNC) ? t_quitint : 0;
Show on old repository browser