Message92690
> prctl is not portable. I always thought that the premise of stdlib is to
> provide portable interfaces. BSD, for example, uses setprocname instead
> of prctl. Also, prctl does not modify the process name shown in "ps
> uxww". Here's how PostgreSQL does this: http://tinyurl.com/mhjuqc.
Many parts of the stdlib are not portable. It is perfectly appropriate
for the stdlib to expose a low-level, platform-specific API directly and
in a way which makes the Python API similarly low-level and non-portable.
That's not to say that a cross-platform API cannot *also* be provided,
though, assuming the functionality can be implemented *somehow* on other
platforms. So I agree with Martin. prctl should be exposed as-is. If
someone would also like to expose similar functionality on on other
platforms, great. And if someone would like to provide a cross-platform
API based on these, also great. |
|
Date |
User |
Action |
Args |
2009-09-16 15:35:14 | exarkun | set | recipients:
+ exarkun, loewis, amaury.forgeotdarc, giampaolo.rodola, flub, marcelo_fernandez, elprans, asksol |
2009-09-16 15:35:14 | exarkun | set | messageid: <1253115314.35.0.638299668716.issue5672@psf.upfronthosting.co.za> |
2009-09-16 15:35:12 | exarkun | link | issue5672 messages |
2009-09-16 15:35:11 | exarkun | create | |
|