fix(lotus-sim): profile signal handling

This commit is contained in:
Steven Allen 2021-06-09 21:35:26 -07:00
parent 5766002370
commit a3f64e0768

View File

@ -68,7 +68,7 @@ func profileOnSignal(cctx *cli.Context, signals ...os.Signal) {
signal.Notify(ch, signals...)
defer signal.Stop(ch)
for range ch {
for {
select {
case <-ch:
fname, err := takeProfiles(cctx.Context)