Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add millisecond and microsecond options to TIMEFMT variable | dana | 2017-12-14 | 1 | -0/+34 |
| | |||||
* | 41688: builtin wait for all jobs should ignore STAT_NOPRINT | Peter Stephenson | 2017-09-13 | 1 | -1/+2 |
| | |||||
* | Delay processing "disown" for superjob. | Peter Stephenson | 2017-07-04 | 1 | -0/+8 |
| | | | | | | | This is a job forked from the current shell when a job partly running from the current shell was suspended. When all associated processes started from the main shell are finished the job is continued and at this point the disown can complete. | ||||
* | 41386: when backgrounding a STAT_CURSH job, remove the flag. | Peter Stephenson | 2017-07-02 | 1 | -1/+3 |
| | | | | | This typical applies to a STAT_SUPERJOB. It prevents it from getting copied interrupts as a foreground process. | ||||
* | 39359: Fix remaining race with orphaned subjob. | Peter Stephenson | 2016-09-16 | 1 | -1/+2 |
| | | | | | | When shell is forked to run right hand side of pipieline it should use its own PID as process group if the left hand side of the pipeline has already exited. | ||||
* | 39331: Reparent subjob on fork with exited superjob. | Peter Stephenson | 2016-09-16 | 1 | -2/+9 |
| | | | | | | | | | | | Fixes case of v() { { vim - } always { true } } ls | v ^Z fg Tentative fix: still a race at exit where zsh forked by ^Z is stopped when restarted. | ||||
* | 38923: zwaitjob() continues waiting for children that may have ignored the ↵ | Barton E. Schaefer | 2016-07-23 | 1 | -1/+8 |
| | | | | interrupt signal, even if the current shell has been interrupted. | ||||
* | users/21632: Use of REPORTMEMORY variable | Peter Stephenson | 2016-06-13 | 1 | -14/+39 |
| | | | | | | If the child's resisdent set size in megabytes exceeds this, print out the resource (TIMEFMT) string. Document you need to add memory usage to this by hand. | ||||
* | 38622: consistent handling of "--" in "kill" builtin | Barton E. Schaefer | 2016-06-05 | 1 | -0/+4 |
| | |||||
* | 37868: add 'static' to file local variables | Jun-ichi Takimoto | 2016-02-03 | 1 | -3/+3 |
| | |||||
* | 36180: avoid infinite job stop/continue loop on "wait PID" for a background job | Barton E. Schaefer | 2015-08-15 | 1 | -1/+8 |
| | |||||
* | 36104: change order of child_block() and dont_queue_signals() to resolve yet ↵ | Barton E. Schaefer | 2015-08-11 | 1 | -2/+2 |
| | | | | another race condition | ||||
* | 35929: protect FDT_PROC_SUBST by #ifdef | Jun-ichi Takimoto | 2015-08-09 | 1 | -2/+5 |
| | |||||
* | 35849: close fd's from process substitution after fork | Peter Stephenson | 2015-07-23 | 1 | -4/+6 |
| | | | | Leaving these hanging in parent could cause deadlock: test added. | ||||
* | 35032: Handle SIGCONT for process better. | Peter Stephenson | 2015-05-05 | 1 | -1/+3 |
| | | | | Update job status as well as process status. | ||||
* | 34120: compctl, jobs: Check contents instead of array | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | | | text is an array in the struct, and can never be null. Found by Coverity (Issue 1255780). | ||||
* | 33992: do not attempt attachtty() for process group zero (which is possible ↵ | Barton E. Schaefer | 2014-12-18 | 1 | -2/+5 |
| | | | | in a linux pid namespace) | ||||
* | 33982: minimal support for pid namespaces by recognizing that GETPGRP() may ↵ | Chirantan Ekbote | 2014-12-16 | 1 | -1/+1 |
| | | | | return 0 | ||||
* | 33876: etc.: Separate errors and keyboards interrupts | Peter Stephenson | 2014-12-11 | 1 | -8/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combination of 12 commits from interrupt_abort branch. Basic strategy is to introduce bits to errflag and to set and reset them separately. Remove interrupt status on return to main keymap. Turn off ERRFLAG_INT for always block. Restore bit thereafter: we probably need a new variable in order to allow user interrupts to be reset in the always block. Add TRY_BLOCK_INTERRUPT This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too. Ensure propagation of SIGINT from exited job. If received by foreground job, shell uses ERRFLAG_INT, not ERRFLAG_ERROR, to set the new state. Reset errflag before precmd() Add always block in _main_completion to fix ZLS_COLORS Ensures we get the right state of $ZLS_COLORS at the end of _main_complete even if there's an interrupt. However, the "right state" is a bit messy as it depends on styles. | ||||
* | unposted: quash compiler warning | Oliver Kiddle | 2014-10-31 | 1 | -0/+2 |
| | |||||
* | 33562: Fix thinko in previous commit | Mikael Magnusson | 2014-10-27 | 1 | -1/+3 |
| | |||||
* | 33561: The time builtin forgot to unmetafy TIMEFMT | Mikael Magnusson | 2014-10-27 | 1 | -1/+1 |
| | |||||
* | 33531 with additions: retain status of exited background jobs. | Peter Stephenson | 2014-10-26 | 1 | -21/+117 |
| | | | | | | | | Add linked list of unwaited-for background jobs. Truncate at value of _SC_CHILD_MAX discarding oldest. Remove old lastpid_status mechanism for latest exited process only. Slightly tighten safety of permanently allocated linked lists so that this doesn't compromise signal handling. | ||||
* | 33354: when backgrounding a pipeline, close all pipe descriptors in the parent | Barton E. Schaefer | 2014-10-04 | 1 | -1/+3 |
| | | | | Add test for both this and 33345+33346 | ||||
* | 33042: $? and $pipestatus report 128+signal number for stopped jobs | Barton E. Schaefer | 2014-08-22 | 1 | -5/+10 |
| | |||||
* | 32624: use correct scaling factor (clock ticks) for times | Peter Stephenson | 2014-05-29 | 1 | -15/+17 |
| | |||||
* | 32178: fix another acquire_pgrp() infinite loop | Barton E. Schaefer | 2013-12-25 | 1 | -0/+4 |
| | |||||
* | 32176: plug additional deadlock-inducing pipe descriptor leaks | Peter Stephenson | 2013-12-21 | 1 | -13/+25 |
| | |||||
* | 31929: Src/jobs.c: fix DPUTS3() test condition from 31906. | Barton E. Schaefer | 2013-10-29 | 1 | -1/+1 |
| | |||||
* | 31906: fix race-condition interaction of $pipestatus with job control | Barton E. Schaefer | 2013-10-26 | 1 | -3/+10 |
| | | | | printjob() should not reference oldjobtab for job numbers unless it is being called from bin_fg(). printjob() also must not attempt to update pipestats when called from bin_fg(). acquire_pgrp() should not loop infintely if the shell is not interactive. Update the $pipestatus stress test so that it also exercises the oldjobtab repair. | ||||
* | 31885: fix PIPEFAIL when the last command executes in the current shell | Barton E. Schaefer | 2013-10-24 | 1 | -18/+24 |
| | |||||
* | 31879 plus misc.: improve $pipestatus handling and add a test for it | Barton E. Schaefer | 2013-10-23 | 1 | -17/+35 |
| | |||||
* | users:18023: Add PIPEFAIL option | Peter Stephenson | 2013-10-06 | 1 | -3/+10 |
| | |||||
* | 31536 with additions: Fix hang in previous process substitution fix. | Peter Stephenson | 2013-07-19 | 1 | -0/+25 |
| | | | | Close applicable file descriptors when waiting for a job. | ||||
* | 31528: use job table to record file descriptors associated with process subst | Peter Stephenson | 2013-07-17 | 1 | -5/+37 |
| | |||||
* | users/17042: don't stomp the environment in "jobs -Z" unless we've first | Bart Schaefer | 2012-11-18 | 1 | -0/+2 |
| | | | | copied it to new memory. | ||||
* | 30724: shell code optimisd to use execsimple() doesn't have a valid thisjob | Peter Stephenson | 2012-10-11 | 1 | -1/+7 |
| | |||||
* | 30687 with typo corrected: don't REPORTTIME if zleactive | Peter Stephenson | 2012-09-21 | 1 | -0/+2 |
| | |||||
* | Danek: 30485: trailing garbage after signal number not recognised in kill | Peter Stephenson | 2012-05-22 | 1 | -3/+8 |
| | |||||
* | 30410 plus one other case: avoid divide-by-zero errors | Peter Stephenson | 2012-04-15 | 1 | -3/+10 |
| | | | | in TIMEFMT interpretation | ||||
* | users/16289: don't delete temporary files on disown. | Peter Stephenson | 2011-08-28 | 1 | -13/+18 |
| | | | | Document. | ||||
* | 29650: Don't lose time info after a suspend+restore. | Wayne Davison | 2011-08-16 | 1 | -0/+2 |
| | |||||
* | unposted: fix capitalized word in the middle of a sentence | Mikael Magnusson | 2011-08-14 | 1 | -1/+1 |
| | |||||
* | 29654: "wait" should resume stopped jobs identified by process ID as well | Bart Schaefer | 2011-08-10 | 1 | -6/+13 |
| | | | | | as by job number; temporary (?) workaround for pipelines getting lost if TSTP is delivered when a shell builtin is the tail of the pipe. | ||||
* | 29481: always return a matching job in findproc() but scan the whole list | Bart Schaefer | 2011-06-15 | 1 | -4/+6 |
| | | | | to prefer running jobs | ||||
* | 29472: findproc() needs at least to also return stopped jobs. | Bart Schaefer | 2011-06-12 | 1 | -1/+2 |
| | |||||
* | 29307, 29308 + replies: Fix some doubled words in docs and comments. | Mikael Magnusson | 2011-05-19 | 1 | -1/+1 |
| | |||||
* | 29165: use term.h globally if needed at all. | Peter Stephenson | 2011-05-09 | 1 | -1/+1 |
| | |||||
* | Stef van Vlierberghe: 28965 (as posted in 28967): | Peter Stephenson | 2011-04-01 | 1 | -1/+18 |
| | | | | findproc() should not return processes not marked as SP_RUNNING | ||||
* | 28179, users/15314, users/15310, users/15200: | Peter Stephenson | 2010-08-22 | 1 | -2/+57 |
| | | | | various job and process control fixes |