]> granicus.if.org Git - python/log
python
11 years agoIssue #18865: remove unused import from multiprocessing.util.spawnv_passfds()
Victor Stinner [Wed, 28 Aug 2013 10:21:47 +0000 (12:21 +0200)]
Issue #18865: remove unused import from multiprocessing.util.spawnv_passfds()

11 years agoIssue #18865: PEP 446 makes multiprocessing.util.pipe() unnecessary.
Richard Oudkerk [Wed, 28 Aug 2013 10:25:34 +0000 (11:25 +0100)]
Issue #18865: PEP 446 makes multiprocessing.util.pipe() unnecessary.

11 years agoGet rid of signed/unsigned comparaison in _sre.c
Victor Stinner [Wed, 28 Aug 2013 00:06:21 +0000 (02:06 +0200)]
Get rid of signed/unsigned comparaison in _sre.c

Fix compilation warnings on Windows (Visual C++) like: "_sre.c(3121): warning
C4018: '>' : signed/unsigned mismatch".

_validate_outer() ensures that groups >= 0, so _validate_inner() can cast
groups to size_t.

11 years ago_datetimemodule.c: fix the compilation warning "conversion from 'double' to
Victor Stinner [Tue, 27 Aug 2013 23:53:39 +0000 (01:53 +0200)]
_datetimemodule.c: fix the compilation warning "conversion from 'double' to
'long', possible loss of data" in delta_new(), use an explicit cast from double
to long

11 years agofix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot
Victor Stinner [Tue, 27 Aug 2013 23:51:06 +0000 (01:51 +0200)]
fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot

11 years agopythonrun.c: use MAXPATHLEN instead of PATH_MAX
Victor Stinner [Tue, 27 Aug 2013 23:47:46 +0000 (01:47 +0200)]
pythonrun.c: use MAXPATHLEN instead of PATH_MAX

PATH_MAX is not available on "MIPS IRIX 6.5.30 [SB] 3.x" buildbot

11 years ago(Merge 3.3) Fix compilation of the _sqlite module if threads are disabled
Victor Stinner [Tue, 27 Aug 2013 23:45:39 +0000 (01:45 +0200)]
(Merge 3.3) Fix compilation of the _sqlite module if threads are disabled

11 years agoFix compilation of the _sqlite module if threads are disabled
Victor Stinner [Tue, 27 Aug 2013 23:44:42 +0000 (01:44 +0200)]
Fix compilation of the _sqlite module if threads are disabled

11 years agoIssue #18571: Implementation of the PEP 446: file descriptors and file handles
Victor Stinner [Tue, 27 Aug 2013 22:53:59 +0000 (00:53 +0200)]
Issue #18571: Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().

11 years agoIssue #18783: Removed existing mentions of Python long type in docstrings,
Serhiy Storchaka [Tue, 27 Aug 2013 17:17:03 +0000 (20:17 +0300)]
Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.

11 years agoIssue #18783: Removed existing mentions of Python long type in docstrings,
Serhiy Storchaka [Tue, 27 Aug 2013 16:40:23 +0000 (19:40 +0300)]
Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.

11 years agoClose #11619: The parser and the import machinery do not encode Unicode
Victor Stinner [Mon, 26 Aug 2013 20:28:21 +0000 (22:28 +0200)]
Close #11619: The parser and the import machinery do not encode Unicode
filenames anymore on Windows.

11 years agoRestore changeset 5bd9db528aed (issue #18408)
Victor Stinner [Mon, 26 Aug 2013 12:05:19 +0000 (14:05 +0200)]
Restore changeset 5bd9db528aed (issue #18408)

"Issue #18408: PyObject_Str(), PyObject_Repr() and type_call() now fail with an
assertion error if they are called with an exception set (PyErr_Occurred()).

As PyEval_EvalFrameEx(), they may clear the current exception and so the caller
looses its exception."

11 years agoIssue #18664, #18408: Rewrite PyErr_WriteUnraisable() to handle errors
Victor Stinner [Mon, 26 Aug 2013 12:04:10 +0000 (14:04 +0200)]
Issue #18664, #18408: Rewrite PyErr_WriteUnraisable() to handle errors

 * Catch PyFile_WriteString() and PyFile_WriteObject() errors
 * Clear the current exception on _PyObject_GetAttrId() failure
 * Use PyUnicode_CompareWithASCIIString() and PyFile_WriteObject() instead of
   _PyUnicode_AsString() and strcmp() to avoid Unicode encoding error. stderr
   has a more tolerant error handler than utf-8/strict.

11 years agoIssue #18408: _PyObject_Dump() now saves/restores the current exception
Victor Stinner [Mon, 26 Aug 2013 11:49:06 +0000 (13:49 +0200)]
Issue #18408: _PyObject_Dump() now saves/restores the current exception

So it can be called even if an exception was raised

11 years ago#18839: merge with 3.3.
Ezio Melotti [Mon, 26 Aug 2013 11:01:29 +0000 (14:01 +0300)]
#18839: merge with 3.3.

11 years ago#18839: document that sys.exit() will not accept a non-integer numeric value as exit...
Ezio Melotti [Mon, 26 Aug 2013 11:00:39 +0000 (14:00 +0300)]
#18839: document that sys.exit() will not accept a non-integer numeric value as exit status.

11 years agoClarify pyexpat documentation in StartElementHandler
Eli Bendersky [Mon, 26 Aug 2013 02:06:16 +0000 (19:06 -0700)]
Clarify pyexpat documentation in StartElementHandler

11 years agoClarify pyexpat documentation in StartElementHandler
Eli Bendersky [Mon, 26 Aug 2013 02:05:55 +0000 (19:05 -0700)]
Clarify pyexpat documentation in StartElementHandler

11 years agoRemove the obsolete XMLParser._start/_start_list duality.
Eli Bendersky [Mon, 26 Aug 2013 01:58:18 +0000 (18:58 -0700)]
Remove the obsolete XMLParser._start/_start_list duality.

XMLParser configures expat to report attributes in a list (ordered_attributes),
so only _start_list is needed. Rename it to _start and kill _start.

11 years ago#18803: merge with 3.3.
Ezio Melotti [Sun, 25 Aug 2013 22:33:30 +0000 (01:33 +0300)]
#18803: merge with 3.3.

11 years ago#18803: fix more typos. Patch by Févry Thibault.
Ezio Melotti [Sun, 25 Aug 2013 22:32:56 +0000 (01:32 +0300)]
#18803: fix more typos.  Patch by Févry Thibault.

11 years agoMerge doc fix from 3.3
Eli Bendersky [Sun, 25 Aug 2013 22:30:39 +0000 (15:30 -0700)]
Merge doc fix from 3.3

11 years agoUpdate XMLParser.close documentation and fix formatting.
Eli Bendersky [Sun, 25 Aug 2013 22:27:36 +0000 (15:27 -0700)]
Update XMLParser.close documentation and fix formatting.

Using ``method`` markup because the method is on a callback object, not an
explicitly documented method. :meth: markup creates links within the current
class which is incorrect.

In addition, indent the paragraph correctly.

11 years agoFix markup in elementtree docs.
Ezio Melotti [Sun, 25 Aug 2013 22:05:57 +0000 (01:05 +0300)]
Fix markup in elementtree docs.

11 years ago#18833: merge with 3.3.
Ezio Melotti [Sun, 25 Aug 2013 21:17:21 +0000 (00:17 +0300)]
#18833: merge with 3.3.

11 years ago#18833: add a test for test_telnetlib. Patch by Alex Volkov.
Ezio Melotti [Sun, 25 Aug 2013 20:56:43 +0000 (23:56 +0300)]
#18833: add a test for test_telnetlib.  Patch by Alex Volkov.

11 years agoIssue #18808: Non-daemon threads are now automatically joined when a sub-interpreter...
Antoine Pitrou [Sun, 25 Aug 2013 17:48:18 +0000 (19:48 +0200)]
Issue #18808: Non-daemon threads are now automatically joined when a sub-interpreter is shutdown (it would previously dump a fatal error).

11 years agoMerge.
Charles-François Natali [Sun, 25 Aug 2013 16:29:16 +0000 (18:29 +0200)]
Merge.

11 years agoMerge.
Charles-François Natali [Sun, 25 Aug 2013 16:28:44 +0000 (18:28 +0200)]
Merge.

11 years agoMerge.
Charles-François Natali [Sun, 25 Aug 2013 16:27:59 +0000 (18:27 +0200)]
Merge.

11 years agoIssue #18763: subprocess: The file descriptors are now closed after calling the
Charles-François Natali [Sun, 25 Aug 2013 16:25:38 +0000 (18:25 +0200)]
Issue #18763: subprocess: The file descriptors are now closed after calling the
preexec_fn callback, which may open file descriptors.

11 years agoIssue #18763: subprocess: The file descriptors are now closed after calling the
Charles-François Natali [Sun, 25 Aug 2013 16:24:45 +0000 (18:24 +0200)]
Issue #18763: subprocess: The file descriptors are now closed after calling the
preexec_fn callback, which may open file descriptors.

11 years agoIssue #18817: Fix a resource warning in Lib/aifc.py demo. Patch by
Serhiy Storchaka [Sun, 25 Aug 2013 16:16:01 +0000 (19:16 +0300)]
Issue #18817: Fix a resource warning in Lib/aifc.py demo.  Patch by
Vajrasky Kok.

11 years agoIssue #18817: Fix a resource warning in Lib/aifc.py demo.
Serhiy Storchaka [Sun, 25 Aug 2013 16:12:56 +0000 (19:12 +0300)]
Issue #18817: Fix a resource warning in Lib/aifc.py demo.

11 years agoMerge #16611: BaseCookie now parses 'secure' and 'httponly' flags.
R David Murray [Sun, 25 Aug 2013 15:09:45 +0000 (11:09 -0400)]
Merge #16611: BaseCookie now parses 'secure' and 'httponly' flags.

11 years ago#16611: BaseCookie now parses 'secure' and 'httponly' flags.
R David Murray [Sun, 25 Aug 2013 15:09:02 +0000 (11:09 -0400)]
#16611: BaseCookie now parses 'secure' and 'httponly' flags.

Previously it generated them if they were given a value, but completely
ignored them if they were present in the string passed in to be parsed.  Now
if the flag appears on a cookie, the corresponding Morsel key will reference a
True value.  Other pre-existing behavior is retained in this maintenance
patch: if the source contains something like 'secure=foo', morsel['secure']
will return 'foo'.  Since such a value doesn't round trip and never did (and
would be a surprising occurrence) a subsequent non-bug-fix patch may change
this behavior.

Inspired by a patch from Julien Phalip, who reviewed this one.

11 years agoIssue #11973: Fix a problem in kevent. The flags and fflags fields are now
Christian Heimes [Sun, 25 Aug 2013 12:57:38 +0000 (14:57 +0200)]
Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.

11 years agoIssue #11973: Fix a problem in kevent. The flags and fflags fields are now
Christian Heimes [Sun, 25 Aug 2013 12:57:00 +0000 (14:57 +0200)]
Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.

11 years agoIssue #18747: Fix spelling errors in my commit message and comments,
Christian Heimes [Sun, 25 Aug 2013 12:19:29 +0000 (14:19 +0200)]
Issue #18747: Fix spelling errors in my commit message and comments,
thanks to Vajrasky Kok for proof-reading.

11 years agoIssue #18747: Fix spelling errors in my commit message and comments,
Christian Heimes [Sun, 25 Aug 2013 12:19:16 +0000 (14:19 +0200)]
Issue #18747: Fix spelling errors in my commit message and comments,
thanks to Vajrasky Kok for proof-reading.

11 years agoIssue #18709: Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
Christian Heimes [Sun, 25 Aug 2013 12:12:50 +0000 (14:12 +0200)]
Issue #18709: Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger

11 years agoIssue #18709: Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
Christian Heimes [Sun, 25 Aug 2013 12:12:41 +0000 (14:12 +0200)]
Issue #18709: Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger

11 years agoCloses #18807: pyvenv now takes a --copies argument allowing copies instead of symlin...
Vinay Sajip [Sat, 24 Aug 2013 23:04:06 +0000 (00:04 +0100)]
Closes #18807: pyvenv now takes a --copies argument allowing copies instead of symlinks even where symlinks are available and the default.

11 years agoFix compiler warning on Windows.
Richard Oudkerk [Sat, 24 Aug 2013 22:46:27 +0000 (23:46 +0100)]
Fix compiler warning on Windows.

11 years agoUse consistent style for else if / else
Eli Bendersky [Sat, 24 Aug 2013 22:17:08 +0000 (15:17 -0700)]
Use consistent style for else if / else

11 years agoClarify the documentation of XMLParser.close
Eli Bendersky [Sat, 24 Aug 2013 22:11:44 +0000 (15:11 -0700)]
Clarify the documentation of XMLParser.close

The return value of close() is not always a toplevel element. It depends on
what the underlying target returns. By default, TreeBuilder returns the
toplevel document element.

11 years agoVarious clarifications based on feedback & questions over the years.
Tim Peters [Sat, 24 Aug 2013 20:31:07 +0000 (15:31 -0500)]
Various clarifications based on feedback & questions over the years.

11 years agoVarious clarifications based on feedback & questions over the years.
Tim Peters [Sat, 24 Aug 2013 20:15:19 +0000 (15:15 -0500)]
Various clarifications based on feedback & questions over the years.
(grafted from 23181bf411a16287a0a54e910fc0f9ecd2764bf0)

11 years agoIssue #18772: fix the gdb plugin after the set implementation changes
Antoine Pitrou [Sat, 24 Aug 2013 19:07:07 +0000 (21:07 +0200)]
Issue #18772: fix the gdb plugin after the set implementation changes

11 years agoIssue #18756: make test_urandom_failure more robust by executing its code in a subprocess
Antoine Pitrou [Sat, 24 Aug 2013 18:52:45 +0000 (20:52 +0200)]
Issue #18756: make test_urandom_failure more robust by executing its code in a subprocess

11 years agoIssue #18756: make test_urandom_failure more robust by executing its code in a subprocess
Antoine Pitrou [Sat, 24 Aug 2013 18:52:27 +0000 (20:52 +0200)]
Issue #18756: make test_urandom_failure more robust by executing its code in a subprocess

11 years agoClose #18538: ``python -m dis`` now uses argparse.
Nick Coghlan [Sat, 24 Aug 2013 14:48:17 +0000 (00:48 +1000)]
Close #18538: ``python -m dis`` now uses argparse.

Patch by Michele Orrù.

11 years ago(Merge 3.3) test_socket: cancel scheduled alarm on test failure
Victor Stinner [Sat, 24 Aug 2013 13:53:39 +0000 (15:53 +0200)]
(Merge 3.3) test_socket: cancel scheduled alarm on test failure

11 years agotest_socket: cancel scheduled alarm on test failure
Victor Stinner [Sat, 24 Aug 2013 13:52:47 +0000 (15:52 +0200)]
test_socket: cancel scheduled alarm on test failure

11 years agoremove support for compiling on systems without getcwd()
Benjamin Peterson [Sat, 24 Aug 2013 02:01:48 +0000 (21:01 -0500)]
remove support for compiling on systems without getcwd()

Do we need a fallback implementation of getcwd() from 1991 that claims to
support "really old Unix systems"? I don't think so.

11 years agoMerge heads
Serhiy Storchaka [Fri, 23 Aug 2013 21:42:54 +0000 (00:42 +0300)]
Merge heads

11 years agoIssue #18757: Improved cross-references in the concurrent package.
Serhiy Storchaka [Fri, 23 Aug 2013 21:27:59 +0000 (00:27 +0300)]
Issue #18757: Improved cross-references in the concurrent package.

11 years agoIssue #18757: Improved cross-references in the concurrent package.
Serhiy Storchaka [Fri, 23 Aug 2013 21:23:38 +0000 (00:23 +0300)]
Issue #18757: Improved cross-references in the concurrent package.

11 years agoBack out 5bd9db528aed (issue #18408). It caused unsolved buildbot failures.
Antoine Pitrou [Fri, 23 Aug 2013 21:18:20 +0000 (23:18 +0200)]
Back out 5bd9db528aed (issue #18408).  It caused unsolved buildbot failures.

11 years agoIssue #17741: use composition, rather than inheritance, for xml.etree.iterparse's...
Antoine Pitrou [Fri, 23 Aug 2013 21:04:30 +0000 (23:04 +0200)]
Issue #17741: use composition, rather than inheritance, for xml.etree.iterparse's result class.
Patch by Stefan Behnel.

11 years ago#18798: merge typo fix from 3.3 and also use two unused variables.
Ezio Melotti [Fri, 23 Aug 2013 20:09:32 +0000 (23:09 +0300)]
#18798: merge typo fix from 3.3 and also use two unused variables.

11 years ago#18798: fix typo in test_fcntl. Patch by Vajrasky Kok.
Ezio Melotti [Fri, 23 Aug 2013 20:06:31 +0000 (23:06 +0300)]
#18798: fix typo in test_fcntl.  Patch by Vajrasky Kok.

11 years ago#18796: improve documentation of the file argument of dis.show_code. Initial patch...
Ezio Melotti [Fri, 23 Aug 2013 19:41:39 +0000 (22:41 +0300)]
#18796: improve documentation of the file argument of dis.show_code.  Initial patch by Vajrasky Kok.

11 years agoIssue #18394: Explicitly close the file object cgi.FieldStorage
Brett Cannon [Fri, 23 Aug 2013 19:15:48 +0000 (15:15 -0400)]
Issue #18394: Explicitly close the file object cgi.FieldStorage
caches.

Eliminates the ResoureWarning raised during testing.

Patch also independently written by Vajrasky Kok.

11 years agoStop using assertEquals.
Brett Cannon [Fri, 23 Aug 2013 18:38:11 +0000 (14:38 -0400)]
Stop using assertEquals.

11 years agoMake test_import more robust and stop using assertRaisesRegexp().
Brett Cannon [Fri, 23 Aug 2013 18:31:27 +0000 (14:31 -0400)]
Make test_import more robust and stop using assertRaisesRegexp().

11 years ago(Merge 3.3) Close #17702: On error, os.environb now removes suppress the except
Victor Stinner [Fri, 23 Aug 2013 17:23:42 +0000 (19:23 +0200)]
(Merge 3.3) Close #17702: On error, os.environb now removes suppress the except
context when raising a new KeyError with the original key.

11 years agoClose #17702: On error, os.environb now removes suppress the except context
Victor Stinner [Fri, 23 Aug 2013 17:19:15 +0000 (19:19 +0200)]
Close #17702: On error, os.environb now removes suppress the except context
when raising a new KeyError with the original key.

11 years agoDelete merge markers
Brett Cannon [Fri, 23 Aug 2013 16:10:09 +0000 (12:10 -0400)]
Delete merge markers

11 years agomerge for issue #18755
Brett Cannon [Fri, 23 Aug 2013 15:52:44 +0000 (11:52 -0400)]
merge for issue #18755

11 years agomerge for issue #18755
Brett Cannon [Fri, 23 Aug 2013 15:52:19 +0000 (11:52 -0400)]
merge for issue #18755

11 years agoNEW entry for issue #18755
Brett Cannon [Fri, 23 Aug 2013 15:47:26 +0000 (11:47 -0400)]
NEW entry for issue #18755

11 years agoIssue #18755: Allow imp.load_*() loaders to have get_data() called
Brett Cannon [Fri, 23 Aug 2013 15:45:57 +0000 (11:45 -0400)]
Issue #18755: Allow imp.load_*() loaders to have get_data() called
multiple times.

11 years agomerge emphasized discouragement of overriding __import__
Brett Cannon [Fri, 23 Aug 2013 15:00:04 +0000 (11:00 -0400)]
merge emphasized discouragement of overriding __import__

11 years agoEmphasize that people should not override __import__.
Brett Cannon [Fri, 23 Aug 2013 14:58:49 +0000 (10:58 -0400)]
Emphasize that people should not override __import__.

With importlib getting used more and more, changing __import__ will
not work as well as people used to hope as it will potentially bypass
importers, etc. It also will not work with importlib.import_module()
as it uses "importlib.__import__" (i.e. importlib's implementation of
import) directly and not builtins.__import__.

11 years agoAdd the same dummy type that is used in dictionaries.
Raymond Hettinger [Fri, 23 Aug 2013 08:22:15 +0000 (03:22 -0500)]
Add the same dummy type that is used in dictionaries.

11 years agoAdd line explaining the "%sort" test.
Tim Peters [Thu, 22 Aug 2013 23:42:02 +0000 (18:42 -0500)]
Add line explaining the "%sort" test.

11 years agoAdd line explaining the "%sort" test.
Tim Peters [Thu, 22 Aug 2013 23:32:53 +0000 (18:32 -0500)]
Add line explaining the "%sort" test.
(grafted from 1ea833ecaf5a9d43a886e9e73b4e2551d0d5b548)

11 years agoMake test for semaphore tracker capture and check the debug output.
Richard Oudkerk [Thu, 22 Aug 2013 22:37:23 +0000 (23:37 +0100)]
Make test for semaphore tracker capture and check the debug output.

11 years agoIssue 18797: Remove unneeded refcount adjustments for dummy objects.
Raymond Hettinger [Thu, 22 Aug 2013 15:20:31 +0000 (08:20 -0700)]
Issue 18797:  Remove unneeded refcount adjustments for dummy objects.

It suffices to keep just one reference when the object is created.

11 years agoIssue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6.
Serhiy Storchaka [Thu, 22 Aug 2013 14:53:06 +0000 (17:53 +0300)]
Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6.

11 years agoIssue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6.
Serhiy Storchaka [Thu, 22 Aug 2013 14:51:58 +0000 (17:51 +0300)]
Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6.

11 years agoIssue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj
Serhiy Storchaka [Thu, 22 Aug 2013 14:42:05 +0000 (17:42 +0300)]
Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj
argument.

This is needed for support Tcl/Tk 8.6.

11 years agoIssue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj
Serhiy Storchaka [Thu, 22 Aug 2013 14:40:31 +0000 (17:40 +0300)]
Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj
argument.

This is needed for support Tcl/Tk 8.6.

11 years agoFix devpoll_dealloc().
Richard Oudkerk [Thu, 22 Aug 2013 13:03:44 +0000 (14:03 +0100)]
Fix devpoll_dealloc().

11 years agoMove definition of devpoll_internal_close() before devpoll_close().
Richard Oudkerk [Thu, 22 Aug 2013 12:31:15 +0000 (13:31 +0100)]
Move definition of devpoll_internal_close() before devpoll_close().

11 years agoFix compilation of select module on Solaris.
Richard Oudkerk [Thu, 22 Aug 2013 12:04:23 +0000 (13:04 +0100)]
Fix compilation of select module on Solaris.

11 years agoIssue #18747: Update Misc/NEWS to reflect the latest changeset.
Christian Heimes [Thu, 22 Aug 2013 11:22:46 +0000 (13:22 +0200)]
Issue #18747: Update Misc/NEWS to reflect the latest changeset.

11 years agoIssue #18747: Update Misc/NEWS to reflect the latest changeset.
Christian Heimes [Thu, 22 Aug 2013 11:22:37 +0000 (13:22 +0200)]
Issue #18747: Update Misc/NEWS to reflect the latest changeset.

11 years agoIssue #18747: Use a parent atfork handler instead of a child atfork handler.
Christian Heimes [Thu, 22 Aug 2013 11:19:56 +0000 (13:19 +0200)]
Issue #18747: Use a parent atfork handler instead of a child atfork handler.
fork() is suppose to be async-signal safe but the handler calls unsafe functions. A parent handler mitigates the issue.

11 years agoIssue #18747: Use a parent atfork handler instead of a child atfork handler.
Christian Heimes [Thu, 22 Aug 2013 11:19:48 +0000 (13:19 +0200)]
Issue #18747: Use a parent atfork handler instead of a child atfork handler.
fork() is suppose to be async-signal safe but the handler calls unsafe functions. A parent handler mitigates the issue.

11 years agoStop making fork server have copy of semaphore_tracker_fd.
Richard Oudkerk [Thu, 22 Aug 2013 10:38:57 +0000 (11:38 +0100)]
Stop making fork server have copy of semaphore_tracker_fd.

11 years agoIssue #18762: Fix EBADF error when using forkserver.
Richard Oudkerk [Thu, 22 Aug 2013 10:38:55 +0000 (11:38 +0100)]
Issue #18762: Fix EBADF error when using forkserver.

11 years agoMerge #18324: set_payload now correctly handles binary input.
R David Murray [Thu, 22 Aug 2013 01:13:51 +0000 (21:13 -0400)]
Merge #18324: set_payload now correctly handles binary input.

11 years ago#18324: set_payload now correctly handles binary input.
R David Murray [Thu, 22 Aug 2013 01:10:31 +0000 (21:10 -0400)]
#18324: set_payload now correctly handles binary input.

This also backs out the previous fixes for for #14360, #1717, and #16564.
Those bugs were actually caused by the fact that set_payload didn't decode to
str, thus rendering the model inconsistent.  This fix does mean the data
processed by the encoder functions goes through an extra encode/decode cycle,
but it means the model is always consistent.  Future API updates will provide
a better way to encode payloads, which will bypass this minor de-optimization.

Tests by Vajrasky Kok.

11 years agoremove unused declaration
Victor Stinner [Thu, 22 Aug 2013 00:23:13 +0000 (02:23 +0200)]
remove unused declaration

11 years agoCleanup test_builtin
Victor Stinner [Wed, 21 Aug 2013 23:58:12 +0000 (01:58 +0200)]
Cleanup test_builtin

11 years agoUse new new stat.S_ISDOOR() function, instead of hardcoded mask
Victor Stinner [Wed, 21 Aug 2013 23:58:04 +0000 (01:58 +0200)]
Use new new stat.S_ISDOOR() function, instead of hardcoded mask

11 years agoMerge 3.3 into default.
Tim Peters [Wed, 21 Aug 2013 23:55:56 +0000 (18:55 -0500)]
Merge 3.3 into default.

The only file change is adding the v3.2.5 tag to the .hgtags file.