jpillora / overseer

Monitorable, gracefully restarting, self-upgrading binaries in Go (golang)
MIT License
2.32k stars 207 forks source link

Master gortoutine is blocked in handleSignal and SIGUSR1 doesn't work #31

Closed xyzhu1120 closed 5 years ago

xyzhu1120 commented 5 years ago

When Restarting is triggered, master process is blocked in select and as a result, it cannot handle sigusr1 from child process. image

image

Can I create a new goroutine to call mp.triggerRestart() in func handleSignal

mutexlock commented 5 years ago

I have the same problem. How can fix it?

mutexlock commented 5 years ago

I send USR2 to master, slave send SIGUSR1 to master,but master is blocked