Vagabond / erlang-syslog

Erlang port driver for interacting with syslog via syslog(3)
Other
87 stars 55 forks source link

Introduce a mutex lock around syslog-type commands #10

Closed jlouis closed 9 years ago

jlouis commented 11 years ago

This patch should make the driver thread-safe and also make it possible to run in PORT LOCKING mode at the same time.

This patch is WIP for fixing #9

jlouis commented 11 years ago

Comments welcome, this is just the quick code-write-up. It has not seen much testing yet, hehe.

jlouis commented 11 years ago

Ok, update, basic testing seems okayish and it looks like this will work until R17 where driver_output_term is deprecated for real.

jlouis commented 11 years ago

Better solution, use the init()/finish() methods to handle the mutex instead. Also remember to destroy mutexes

sylane commented 10 years ago

Hi, any idea why this has not been merged in ?

jlouis commented 9 years ago

For completeness, this PR is not relevant anymore. @vinoski had a better patch and we ended up using that patch rather than this solution. Hence, I'll close this PR and clean up.