Import two vendor fixes from tcsh-6.15.01 for MFC to 7.0. The fixes are:

- Fix pty detection for autologout setting
    - kill `foo` got stuck because sigchld was disabled too soon

Requested by: re
This commit is contained in:
Mark Peek 2007-10-15 16:54:07 +00:00
parent 5c3ede8519
commit 1dd6018d3b

View File

@ -851,8 +851,7 @@ getsub(struct wordent *en)
return (en);
}
slhs.len = 0;
if (lhsb.s != NULL && lhsb.len != 0)
Strbuf_append(&slhs, lhsb.s);
Strbuf_append(&slhs, lhsb.s);
Strbuf_terminate(&slhs);
if (exclc)
en = dosub(sc, en, global);