Only print readline err for errno>0
This commit is contained in:
parent
04da3fcbc8
commit
1873484edc
@ -76,7 +76,9 @@ func Run(run bool, pid int, args []string) {
|
|||||||
|
|
||||||
func handleExit(dbp *proctl.DebuggedProcess, status int) {
|
func handleExit(dbp *proctl.DebuggedProcess, status int) {
|
||||||
errno := goreadline.WriteHistoryToFile(historyFile)
|
errno := goreadline.WriteHistoryToFile(historyFile)
|
||||||
|
if errno != 0 {
|
||||||
fmt.Println("readline:", errno)
|
fmt.Println("readline:", errno)
|
||||||
|
}
|
||||||
|
|
||||||
prompt := "Would you like to kill the process? [y/n]"
|
prompt := "Would you like to kill the process? [y/n]"
|
||||||
answerp := goreadline.ReadLine(&prompt)
|
answerp := goreadline.ReadLine(&prompt)
|
||||||
|
Loading…
Reference in New Issue
Block a user