Author loewis
Recipients amaury.forgeotdarc, asksol, brian.curtin, elprans, eric.araujo, exarkun, flub, giampaolo.rodola, iElectric, lericson, loewis, marcelo_fernandez, piro, serverhorror, vstinner
Date 2010-12-29.02:06:46
SpamBayes Score 1.01236e-12
Marked as misclassified No
Message-id <4D1A97B5.1020204@v.loewis.de>
In-reply-to <1293585806.86.0.446616973651.issue5672@psf.upfronthosting.co.za>
Content
> Just for the record, I was about to try to do this, when I realized that exposing prctl requires expecting a variable number of arguments with variable types.
> It turns out providing a Python wrapper for such a kind of C API is just a pain.
> There's an implementation though, handling 2 args only (instead of 5):
> https://github.com/seveas/python-prctl/blob/master/_prctlmodule.c#L9
> Considering that this also Linux-only, I don't think it really worths the effort.

It's actually simpler than you think: I don't think any of the existing
controls uses arg4 and arg5. PR_MCE_KILL uses arg3, though. prctl is
really a set of system calls, and should be wrapped as such: each
control needs to be supported specifically. However, several of them
are similar, i.e. take either no argument, or have

Whether it's worth supporting it, I don't know. I stand by my original
proposition: if somebody would contribute this, I'd be in favor of
including it. I'm unlikely to write it on my own from scratch, though.
History
Date User Action Args
2010-12-29 02:06:48loewissetrecipients: + loewis, exarkun, amaury.forgeotdarc, vstinner, giampaolo.rodola, flub, piro, serverhorror, iElectric, eric.araujo, marcelo_fernandez, elprans, brian.curtin, asksol, lericson
2010-12-29 02:06:46loewislinkissue5672 messages
2010-12-29 02:06:46loewiscreate