change liner source so that we can have good tty config
This commit is contained in:
parent
f69532d54c
commit
91498926d5
4 changed files with 14 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue