| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83088 | ronald.oussoren | 2010-07-23 14:53:51 +0100 (Fri, 23 Jul 2010) | 8 lines
This fixes issue7900 by adding code that deals
with the fact that getgroups(2) might return
more that MAX_GROUPS on OSX.
See the issue (and python-dev archives) for the
gory details. Summarized: OSX behaves rather oddly
and Apple says this is intentional.
........
|
| |
|
|
|
|
| |
if the path length exceeded PATH_MAX.
|
| |
|
| |
|
|
|
|
| |
Fix some more functions by hand
|
|
|
|
|
| |
Run Antoine Pitrou "untabify" script + manual editions (OS/2 and some
continuation lines).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
os.kill takes one of two newly added signals, CTRL_C_EVENT and
CTRL_BREAK_EVENT, or any integer value. The events are a special case
which work with subprocess console applications which implement a
special console control handler. Any other value but those two will
cause os.kill to use TerminateProcess, outright killing the process.
This change adds win_console_handler.py, which is a script to implement
SetConsoleCtrlHandler and applicable handler function, using ctypes.
subprocess also gets another attribute which is a necessary flag to
creationflags in Popen in order to send the CTRL events.
|
| |
|
|
|
|
| |
a -1 parameter on some platforms such as OS X.
|
| |
|
|
|
|
|
| |
thread could raise an incorrect RuntimeError about not holding the import
lock. The import lock is now reinitialized after fork.
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Issue #7714: Use ``gcc -dumpversion`` to detect the version of GCC on
MacOSX.
- Make configure look for util.h as well as libutil.h. The former
is the header file that on OSX contains the defition of openpty.
(Needed to compile for OSX 10.4 on OSX 10.6)
- Use the correct definition of CC to compile the pythonw executable
|
| |
|
|
|
|
|
| |
access to the initgroups(3) C library call on Unix systems which implement
it. Patch by Jean-Paul Calderone.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
acquiring the import lock around fork() calls. This prevents other threads
from having that lock while the fork happens, and is the recommended way of
dealing with such issues. There are two other locks we care about, the GIL
and the Thread Local Storage lock. The GIL is obviously held when calling
Python functions like os.fork(), and the TLS lock is explicitly reallocated
instead, while also deleting now-orphaned TLS data.
This only fixes calls to os.fork(), not extension modules or embedding
programs calling C's fork() directly. Solving that requires a new set of API
functions, and possibly a rewrite of the Python/thread_*.c mess. Add a
warning explaining the problem to the documentation in the mean time.
This also changes behaviour a little on AIX. Before, AIX (but only AIX) was
getting the import lock reallocated, seemingly to avoid this very same
problem. This is not the right approach, because the import lock is a
re-entrant one, and reallocating would do the wrong thing when forking while
holding the import lock.
Will backport to 2.6, minus the tiny AIX behaviour change.
|
|
|
|
|
|
|
| |
GetFileAttributesEx[AW]
won't fail with ERROR_CALL_NOT_IMPLEMENTED on win NT.
Reviewed by Amaury Forgeot d'Arc.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
the dedicated C type `pid_t` instead of a C `int`. Some platforms have
a process identifier type wider than the standard C integer type.
|
| |
|
| |
|
|
|
|
| |
values that pwd.getpwnam() returns.
|
|
|
|
|
| |
Dynamically discoverd the size of the ioinfo struct used by the crt for its file descriptors. This should work across all flavors of the CRT. Thanks to Amaury Forgeot d'Arc
Needs porting to 3.1
|
| |
|
|
|
|
| |
Windows, and stop using global runtime settings to silence the warnings / assertions.
|
| |
|
|
|
|
| |
Let os.ftruncate raise OSError like documented.
|
| |
|
| |
|
|
|
|
| |
made win32_chdir, win32_wchdir static.
|
| |
|
|
|
|
|
| |
returned a path longer than MAX_PATH. (But It's doubtful this code path is
really executed because I cannot move to such directory on win2k)
|
|
|
|
| |
fails unicode conversion on 2nd parameter. (windows only)
|
|
|
|
|
|
|
| |
by denying s# to parse objects that have a releasebuffer procedure,
and introducing s*.
More module might need to get converted to use s*.
|
|
|
|
|
|
| |
CryptGenRandom.
Since python doesn't provide any particular random data, it seems more reasonable anyway.
|
| |
|
|
|
|
|
|
|
|
| |
process rather than both parent and child.
Does anyone actually use fork1()? It appears to be a Solaris thing
but if Python is built with pthreads on Solaris, fork1() and fork()
should be the same.
|
|
|
|
|
| |
not fixed length, it mallocs memory if needed. As a result, we
don't have a maximum for the getcwd() method.
|
|
|
|
|
|
|
| |
http://mail.python.org/pipermail/python-dev/2008-June/079988.html
Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names
in the spirit of 3.0 are available via a #define only. See the email thread.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
uid and gid input to accept values >=2**31 as valid while still accepting
negative numbers to pass -1 to chown for "no change".
Fixes issue1747858.
This should be backported to release25-maint.
|
|
|
|
|
| |
The removal of strerror.c led to the function check being removed from
configure.in.
|
|
|
|
| |
result on Windows.
|
| |
|
|
|
|
|
|
| |
what we should call [this wrapper only available on OS/2].
Backport candidate to 2.5.
|