Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 220641 Details for
Bug 286191
app-eselect/eselect-python: python-wrapper sometimes breaks init scripts using start-stop-daemon with Python scripts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for dev-lang/python:2.6
python-2.6-PYTHON_PROCESS_NAME.patch (text/plain), 764 bytes, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2010-02-21 21:58:54 UTC
(
hide
)
Description:
Patch for dev-lang/python:2.6
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2010-02-21 21:58:54 UTC
Size:
764 bytes
patch
obsolete
>--- Modules/python.c >+++ Modules/python.c >@@ -2,6 +2,13 @@ > > #include "Python.h" > >+#include <stdlib.h> >+ >+#ifdef __linux__ >+#include <linux/prctl.h> >+#include <sys/prctl.h> >+#endif >+ > #ifdef __FreeBSD__ > #include <floatingpoint.h> > #endif >@@ -9,6 +16,8 @@ > int > main(int argc, char **argv) > { >+ char *process_name; >+ > /* 754 requires that FP exceptions run in "no stop" mode by default, > * and until C vendors implement C99's ways to control FP exceptions, > * Python requires non-stop mode. Alas, some platforms enable FP >@@ -20,5 +29,12 @@ > m = fpgetmask(); > fpsetmask(m & ~FP_X_OFL); > #endif >+ >+#ifdef __linux__ >+ if ((process_name = getenv("PYTHON_PROCESS_NAME"))) { >+ prctl(PR_SET_NAME, process_name); >+ } >+#endif >+ > return Py_Main(argc, argv); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 286191
:
205104
|
213083
|
213125
|
220639
|
220641
|
221107
|
222473
|
222883
|
222885
|
222887
|
223211
|
223213