On Tue, Dec 8, 2020 at 11:11 PM xie cui <cuiwei...@gmail.com> wrote: > > https://github.com/golang/go/blob/master/src/runtime/proc.go#L248-L251 > why these codes, it seem is unnecessary?
Those lines are there to help new ports. If the `exit` function isn't working right, it might return. If the signal handler isn't working right, `*x = 0` might not panic. At least the loop will stop the program from doing something unexpected. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcU%2BQcQ12oBLxT2hfqGApMGhyqS1kZeYeDbuRc_o1A-jwQ%40mail.gmail.com.