summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/sh.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix tcsh losing history when tcsh terminates because the pty beneath itrdivacky2009-10-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is closed. Diagnosed by Ted Anderson: New signal queuing logic was introduced in 6.15 and allows the signal handlers to be run explicitly by calling handle_pending_signals, instead of immediately when the signal is delivered. This function is called at various places, typically when receiving a EINTR from a slow system call such as read or write. In the pty exit case, it was called from xwrite, called from flush, while printing the "exit" message after receiving EOF when reading from the pty (note that the read did not return EINTR but zero bytes, indicating EOF). The SIGHUP handler, phup(), called rechist, which opened the history file and began writing the merged history to it. This process invoked flush recursively to actually write the data. In this case, however, the flush noticed it was being called recursively and decided fail by calling stderror. My conclusion was that the signal was being handled at a bad time. But whether to fix flush not to care about the recursive call, or to handle the signal some other time and when to handle it, was unclear to me. However, by adding an extra call to handle_pending_signals, just after process() returns to main(), I was able to avoid the truncated history after network outages and similar failures. I verified this fix in version 6.17. Approved by: ed (mentor) MFC after: 1 week
* Update to tcsh 6.17.00.mp2009-07-111-29/+43
|\ | | | | | | Approved by: re (kensmith)
| * Flatten vendor/tcsh/dist.mp2009-07-101-2364/+0
| |
* | Actually fix pty detection for autologout setting.ru2008-10-201-1/+1
|/ | | | (The fix has been submitted upstream.)
* Import two vendor fixes from tcsh-6.15.01 for MFC to 7.0. The fixes are:mp2007-10-151-2/+2
| | | | | | | - Fix pty detection for autologout setting - kill `foo` got stuck because sigchld was disabled too soon Requested by: re
* Import of tcsh-6.15.00mp2007-03-111-466/+293
|
* Import of tcsh-6.14.00mp2005-04-241-89/+94
|
* Import of tcsh-6.13.00mp2004-07-111-11/+36
|
* Import of tcsh-6.12.00mp2002-07-241-41/+76
|
* Import tcsh-6.11mp2001-09-051-2/+15
|
* Import vendor fix for buffer overflow in HOME environment variablekris2001-03-031-3/+15
|
* Initial import of slightly trimmed tcsh 6.10ache2000-11-301-34/+40
|
* 6.09.01 vendor update.obrien2000-04-201-4/+4
|
* Import the latest version of the 44BSD C-shell -- tcsh-6.09.obrien2000-04-151-0/+2441
OpenPOWER on IntegriCloud