[#81999] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — ko1@...
Issue #13737 has been updated by ko1 (Koichi Sasada).
4 messages
2017/07/11
[#82005] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — nobu@...
Issue #13737 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/07/12
[#82102] Re: register_fstring_tainted:FL_TEST_RAW(str, RSTRING_FSTR) — Eric Wong <normalperson@...>
Koichi Sasada <ko1@atdot.net> wrote:
4 messages
2017/07/18
[#82151] [Ruby trunk Feature#13637] [PATCH] tool/runruby.rb: test with smallest possible machine stack — Rei.Odaira@...
Issue #13637 has been updated by ReiOdaira (Rei Odaira).
3 messages
2017/07/24
[ruby-core:81950] Re: [Ruby trunk Bug#13727] Not able to set program_name for new Syslog::Logger
From:
Eric Wong <normalperson@...>
Date:
2017-07-07 07:44:39 UTC
List:
ruby-core #81950
melentievm@gmail.com wrote: > Hi! > > Every instance of syslog logger uses same program_name as first initialized one, because they all share single instance of Syslog (https://github.com/ruby/ruby/blob/trunk/ext/syslog/lib/syslog/logger.rb#L195) Yes, this is documented at the top of that file: | NOTE! You can only set the Syslog::Logger program name when you initialize | Syslog::Logger for the first time. This is a limitation of the way | Syslog::Logger uses syslog (and in some ways, a limitation of the way | syslog(3) works). Attempts to change Syslog::Logger's program name after the | first initialization will be ignored. If Ruby Syslog were to support different program names, it would have to repeatedly make calls openlog(3)/closelog(3) C library functions. That would still leave reentrancy + thread-safety problems, and probably small performance ones, too. I suggest using a short program name and perhaps using a context-specific prefix (perhaps stored in Thread.current[]) for each call, instead. Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>