change liner source so that we can have good tty config

This commit is contained in:
Aidan 2020-07-22 23:00:25 -07:00
parent f69532d54c
commit 91498926d5
No known key found for this signature in database
GPG key ID: 327711E983899316
4 changed files with 14 additions and 3 deletions

View file

@ -91,7 +91,7 @@ func waitHandler() {
exit = -1024
var e *exec.ExitError
if errors.As(w, &e) {
exit = e.Pid()
exit = e.ExitCode()
}
LastExitCode = exit
@ -156,7 +156,9 @@ func InitShellFeatures() bool {
func TeardownShell() {
close(sigChan)
close(waitChan)
// TODO: Exit all processes in the JobMap
for k := range JobMap {
JobMap[k].Cancel()
}
}
/* Makes and stores a new process in the job control