Peter Stephenson
aede5c52bf
32176: plug additional deadlock-inducing pipe descriptor leaks
2013-12-21 17:41:21 -08:00
Barton E. Schaefer
9887fc3d7b
32171: close pipe descriptor in parent when left side is a shell construct to
...
prevent deadlock
Also clean up ChangeLog entry that attributed 32119 to 32114
2013-12-20 23:03:46 -08:00
Daniel Shahaf
b28a6365f6
32091: WARN_CREATE_GLOBAL false positive.
...
In cases like () { foo=bar =true; }
2013-12-06 09:28:42 +00:00
Barton E. Schaefer
c98cbe25d2
31919: fix deadlock when a shell builtin with a multio redirection is used on the left side of a pipeline
...
Make sure stdin/out/err file descriptors are closed for the multio copy
process, which means not re-using those descriptors after they are closed
and marked FDT_UNUSED in fdtable[]. For completeness, initialize their
fdtable[] state to FDT_EXTERNAL.
2013-10-27 15:42:00 -07:00
Barton E. Schaefer
c39d2f8e49
31912: in closemn(), distinguish closing for >&- from closing for a real redirect
...
Fixes knock-on multios bug introduced by workers/20666 way back in 2005.
2013-10-27 11:27:41 -07:00
Peter Stephenson
9a044f1a6a
Use VERBOSE option in execstring()
2013-10-19 23:08:24 +01:00
Peter Stephenson
8879c46a48
31846: fix NOEXEC option in execsimple() optimisation
2013-10-18 23:42:07 +01:00
Bart Schaefer
978b5bcc8d
31832: make execrestore() more signal-safe.
2013-10-17 07:35:05 -07:00
Peter Stephenson
68a9bab11d
31809: Make whitespace clear in trace output for patterns.
2013-10-10 17:12:50 +01:00
Peter Stephenson
709dbbbda8
31549: Fix third problem with file descriptor management.
...
Replace ad-hoc subsh_close file descriptor for pipe management with the new
job-based addfilelist() mechanism.
2013-07-21 18:23:04 +01:00
Peter Stephenson
39ab9952e8
31545: Use of FD_CLOEXEC to remove possibility of fd reuse.
...
File descriptors of mmap'd dump files are closed if and only if
an exec is performed.
2013-07-20 23:23:18 +01:00
Peter Stephenson
3c5732223f
31528: use job table to record file descriptors associated with process subst
2013-07-17 21:33:16 +01:00
Peter Stephenson
fdf2867e5f
31444: Basic code for enable/disable -p
2013-06-13 18:38:33 +01:00
Frank Terbeck
2405b0ac0c
31376: Make sure every execve() is prefixed by winch_unblock()
...
This was suggested by Bart Schaefer in 31375.
2013-05-05 20:33:36 +02:00
Frank Terbeck
9604bc9a9f
Revert "31372: Do not block SIGWINCH for child processes"
...
This reverts commit f8ab02ad5f
.
As Bart suggested in 31375.
2013-05-05 20:33:07 +02:00
Bart Schaefer
f8ab02ad5f
31372: Do not block SIGWINCH for child processes
...
Something similar may also be needed in the zpty and clone modules.
2013-05-05 11:27:39 +02:00
Peter Stephenson
fb3ad98f71
31141: Tighten NO_CLOBBER restrictions on {fd} syntax
...
to apply only if $fd is exactly an fd and nothing else.
2013-03-10 21:45:04 +00:00
Peter Stephenson
1869eeb393
30876: fix obscure failures to propagate non-zero status
...
from optimised simple commands within lists
2012-12-13 10:36:59 +00:00
Peter Stephenson
4b86cc48f7
30726: make shell options passed to emulate stick along with the emulation
2012-10-11 20:14:01 +00:00
Peter Stephenson
ad92cb3203
30724: shell code optimisd to use execsimple() doesn't have a valid thisjob
2012-10-11 16:36:14 +00:00
Peter Stephenson
4e2cdd7956
30722: fix some cases where emulations or options were not propagated properly
...
from the emulate command
2012-10-07 19:46:46 +00:00
Peter Stephenson
6f3ff6b653
30633: "functions -T" only traces marked function, not called functions
2012-08-21 18:03:01 +00:00
Peter Stephenson
86f8e8de69
30307 plus tweak suggsted by Wayne: use %lld for zlong when long long
2012-03-05 10:06:28 +00:00
Bart Schaefer
8c37e6f077
30272 (tweaked): most failures of fork() cause non-interactive shells to
...
exit nonzero; bad options to "exec" cause exit under POSIX_BUILTINS.
2012-03-01 03:33:18 +00:00
Peter Stephenson
53f893d062
30181, plus rename of PF_* flags to PREFORK_*:
...
Pass sh-wordsplitting instructions to paramsubst() using flags,
avoiding side effects of explicitly setting and unsetting the
SHWORDSPLIT option.
2012-02-12 20:27:48 +00:00
Frank Terbeck
c8381cda78
30111: Src/exec.c: Fix segfaults with exec options.
2012-01-16 22:14:11 +00:00
Peter Stephenson
93139f39f1
30000 plus some comments: Better POSIXJOBs behaviour.
...
Don't restore default SIGTTOU etc. behaviour if still doing job control.
Only carry on doing job control in subshell if it's a real
(...) subshell
2011-12-12 19:25:02 +00:00
Peter Stephenson
faa02346a8
29844, 29845: remove bogus
...
error on closing fd's 0 to 9; update test
2011-10-26 18:48:13 +00:00
Peter Stephenson
ca7269e82d
users/16289: don't delete temporary files on disown.
...
Document.
2011-08-28 16:38:28 +00:00
Peter Stephenson
85b00bb0f7
29703: crash when failing to parse process substitutions
2011-08-17 20:26:05 +00:00
Bart Schaefer
516ea294b8
29677: Do not allow external processes in a pipeline to become suspended
...
when the end of the pipe is controlled by a builtin in the current shell
which cannot itself become suspended.
2011-08-14 18:34:27 +00:00
Bart Schaefer
92ee9324a9
29654: "wait" should resume stopped jobs identified by process ID as well
...
as by job number; temporary (?) workaround for pipelines getting lost if
TSTP is delivered when a shell builtin is the tail of the pipe.
2011-08-10 03:21:15 +00:00
Peter Stephenson
45913f43e5
29561: Allow closing of fd's not recorded by the shell
2011-07-25 10:20:09 +00:00
Peter Stephenson
a8657c4b40
29555: fix problem using open fd beyond max_zsh_fd
2011-07-19 09:26:56 +00:00
Peter Stephenson
e1680e6840
29503: Missing popheap() on failed autoload
2011-06-23 19:29:24 +00:00
Peter Stephenson
6062529d3f
29492: add argument handling to anonymous functions
2011-06-19 20:12:00 +00:00
Bart Schaefer
e39dfaeb95
29367, 29368: avoid redirecting the xtrace of simple commands along with
...
their standard error.
2011-05-24 15:49:03 +00:00
Mikael Magnusson
72cb7cfc6f
29307, 29308 + replies: Fix some doubled words in docs and comments.
2011-05-19 16:10:46 +00:00
Peter Stephenson
d89361739a
29165: use term.h globally if needed at all.
2011-05-09 09:49:08 +00:00
Peter Stephenson
17e3f742f1
29129: reading of end of fd array
2011-05-02 12:32:41 +00:00
Peter Stephenson
7bc97b920b
28866: with POSIX_BUILTINS "command" prefix resets specialness
2011-03-06 21:37:38 +00:00
Peter Stephenson
4bfb5daa7e
28795 plus typos noticed by Mikael: careful with forked shells
2011-02-23 09:47:05 +00:00
Peter Stephenson
dbbcbf67cb
28791: exit on errors with special builtins with POSIXBUILTINS
2011-02-22 20:09:20 +00:00
Peter Stephenson
0e792b9447
28784: exit on exec redirection error with POISX_BUILTINS
2011-02-21 11:28:49 +00:00
Peter Stephenson
3a23e82941
28762: fix coproc file desriptor closing
2011-02-17 19:52:41 +00:00
Peter Stephenson
246bcd10a7
Mikael: 28531: typos
2010-12-16 13:55:35 +00:00
Peter Stephenson
9371146ad7
28469: fix memory leak in anonymous function
2010-12-05 16:59:41 +00:00
Bart Schaefer
cf17c39832
28461: flush stderr in PRINT_EXIT_VALUE handling.
2010-11-27 19:46:32 +00:00
Peter Stephenson
f1495f5099
28259: Finally fix some ancient problems with here-documents
2010-09-14 14:46:26 +00:00
Peter Stephenson
8bc64084a4
28220 plus some comments: fix "HELLO=$HELLO shellfunc"
2010-08-31 19:32:56 +00:00