mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:47:51 +08:00
parent
7868b68ff3
commit
3b70ef3b00
|
@ -61,9 +61,10 @@ func rescue() {
|
|||
r := recover()
|
||||
if r != nil {
|
||||
println()
|
||||
println(r)
|
||||
print(sys.DumpStack())
|
||||
println("\nexecing recovery shell /bin/sh")
|
||||
println()
|
||||
println(r)
|
||||
println("\nExecing recovery shell /bin/sh")
|
||||
syscall.Exec("/bin/sh", []string{"/bin/sh"}, os.Environ())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user