fix(lotus-sim): profile signal handling
This commit is contained in:
parent
5766002370
commit
a3f64e0768
@ -68,7 +68,7 @@ func profileOnSignal(cctx *cli.Context, signals ...os.Signal) {
|
|||||||
signal.Notify(ch, signals...)
|
signal.Notify(ch, signals...)
|
||||||
defer signal.Stop(ch)
|
defer signal.Stop(ch)
|
||||||
|
|
||||||
for range ch {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ch:
|
case <-ch:
|
||||||
fname, err := takeProfiles(cctx.Context)
|
fname, err := takeProfiles(cctx.Context)
|
||||||
|
Loading…
Reference in New Issue
Block a user