General

Profile

hkmaly (Honza Maly)

  • Login: hkmaly
  • Registered on: 12/22/2017
  • Last sign in: 12/27/2017

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

12/22/2017

01:11 PM Ruby Misc #14222: Mutex.lock is not safe inside signal handler: what is?
Few more questions: is adding key to hash safe? Pushing variable to array as used in http://www.mikeperham.com/2013/02/23/signal-handling-with-ruby/ ? hkmaly (Honza Maly)
01:00 PM Ruby Misc #14222 (Closed): Mutex.lock is not safe inside signal handler: what is?
As mentioned in #7917, Mutex.lock is not safe inside signal handler. As mentioned in #6416, neither is Thread.join. But there seem to be no documentation about what IS safe to do inside signal handler. In C, it is not safe to just modify... hkmaly (Honza Maly)
01:05 PM Ruby Bug #7917: Can't write to a Logger in a signal handler
What IS the recommended way to fix this if Mutex nor Thread are safe in signal handler? Also created question for what is safe in signal handler in general as #14222 hkmaly (Honza Maly)

Also available in: Atom