Actions
Feature #4689
closed/proc/$PID/environ in Linux
Description
I wanted to inspect the environment of a long-running process[1] and I
noticed Ruby 1.9.2 moves environ for argv storage when modifying $0.
Can we do this lazily and only as a last resort when argv doesn't have
space? I can look into supplying patches this weekend, at least for
the Linux use case.
I remember this worked fine in 1.9.1 even with minor $0 modifications
in my code.
[1] I use this command: tr '\0' '\n' < /proc/$PID/environ
--
Eric Wong
Updated by kosaki (Motohiro KOSAKI) over 13 years ago
- Category set to core
- Status changed from Open to Assigned
- Assignee set to kosaki (Motohiro KOSAKI)
- Priority changed from Normal to 3
- Target version set to 2.0.0
Updated by kosaki (Motohiro KOSAKI) over 13 years ago
- Status changed from Assigned to Closed
r31565 - r31567.
Updated by kosaki (Motohiro KOSAKI) over 13 years ago
note: this isssue only exist in ruby-1.9. (aka regression)
Updated by normalperson (Eric Wong) over 13 years ago
Motohiro KOSAKI kosaki.motohiro@gmail.com wrote:
Status changed from Assigned to Closed
r31565 - r31567.
Thank you!
--
Eric Wong
Updated by kosaki (Motohiro KOSAKI) over 13 years ago
r31568, r31569 are fixes for this feature.
Actions
Like0
Like0Like0Like0Like0Like0