You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing an odd issue after issuing a USR2 signal to my process. I've got an OnSIGHUP handler which opens some files and reloads data from them. On the first HUP after USR2 I get
read file.txt: bad file descriptor
if I HUP the process again it all works fine. I've been able to hack around this by setting a global variable after USR2 and if its the first HUP after a USR2 and doing
and then running the code to reload the data from the files. Is this anything you've seen before, is there likely to be anything common I've not done correctly.
My use of goagain effectively matches the examples/simple/main.go example with the addition of the OnSIGHUP handler.
I'll try to replicate the issue with the simple example.
The text was updated successfully, but these errors were encountered:
mtharp
added a commit
to mtharp/goagain
that referenced
this issue
Jun 24, 2016
Figured it out. Whenever the garbage collector runs it was closing the inherited FD a second time, either doing nothing or killing whatever file happened to be opened next after the restart. See pull request #28.
blamarvt
added a commit
to blamarvt/goagain
that referenced
this issue
Jan 19, 2018
I'm experiencing an odd issue after issuing a USR2 signal to my process. I've got an OnSIGHUP handler which opens some files and reloads data from them. On the first HUP after USR2 I get
if I HUP the process again it all works fine. I've been able to hack around this by setting a global variable after USR2 and if its the first HUP after a USR2 and doing
and then running the code to reload the data from the files. Is this anything you've seen before, is there likely to be anything common I've not done correctly.
My use of goagain effectively matches the examples/simple/main.go example with the addition of the OnSIGHUP handler.
I'll try to replicate the issue with the simple example.
The text was updated successfully, but these errors were encountered: