Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Enable FD_CLOEXEC for lock fd. | Zac Medico | 2013-01-03 | 1 | -1/+10 |
| | |||||
* | locks.py: fix _close_fds docstringv2.2.0_alpha96 | Zac Medico | 2012-03-27 | 1 | -1/+0 |
| | |||||
* | Close fewer file descriptors for fork / no exec. | Zac Medico | 2012-03-27 | 1 | -1/+22 |
| | | | | This will fix bug #374335. | ||||
* | Fix a typo in a comment.v2.2.0_alpha81 | Arfrever Frehtes Taifersar Arahesis | 2011-12-14 | 1 | -1/+1 |
| | |||||
* | hardlink_lockfile: preserve existing permissions | Zac Medico | 2011-12-14 | 1 | -2/+6 |
| | |||||
* | lockfile: deprecate file object or fd parameters | Zac Medico | 2011-12-13 | 1 | -1/+11 |
| | | | | | | | Support for file object or integer file descriptor parameters is deprecated due to ambiguity in whether or not it's safe to close the file descriptor, making it prone to "Bad file descriptor" errors or file descriptor leaks. | ||||
* | hardlink_lockfile: optimize away most link calls | Zac Medico | 2011-12-13 | 1 | -30/+41 |
| | | | | | | If fstat shows more than one hardlink, then it's extremely unlikely that the following link call will result in a lock, so optimize away the wasteful link call and sleep or raise TryAgain. | ||||
* | hardlink_is_mine: return False, never None | Zac Medico | 2011-12-13 | 1 | -1/+2 |
| | |||||
* | locks.py: fix hardlink locks for bug #394195 | Zac Medico | 2011-12-13 | 1 | -55/+126 |
| | | | | | | This updates the hardlink locking code to support the non-blocking, lockfile(wantnewlockfile=False), and lockfile(file_object) behaviors which are used by portage code. | ||||
* | locks.py: make hardlink lock files hidden | Zac Medico | 2011-12-13 | 1 | -4/+6 |
| | | | | | This is for consistency with the behavior for normal lock files, since commit ce44ea3e914098a52bc0d1d995e71661659e77ca (bug #142369). | ||||
* | locks.py: use flock with PyPy for issue 747 | Zac Medico | 2011-12-01 | 1 | -0/+5 |
| | |||||
* | lockfile: use hasattr() instead of dir() | Zac Medico | 2011-06-09 | 1 | -1/+1 |
| | |||||
* | locks: use a private constant for fcntl.lockf | Zac Medico | 2011-06-09 | 1 | -3/+4 |
| | |||||
* | Fix lockfile() to close the file descriptor before raising TryAgain. | Zac Medico | 2010-09-18 | 1 | -0/+1 |
| | |||||
* | Bug #336142 - Add support for using a thread to wait for locks inside | Zac Medico | 2010-09-13 | 1 | -2/+2 |
| | | | | | dblink.lockdb() so that the scheduler can concurrently service ipc calls in the main thread. | ||||
* | Add missing portage import in portage.locks. | Zac Medico | 2010-09-03 | 1 | -0/+1 |
| | |||||
* | Make portage.locks avoid importing the portage.output module when in | Zac Medico | 2010-09-03 | 1 | -6/+10 |
| | | | | | quiet mode. This is one less import triggered by ebuild-ipc.py, which should be as lightweight as possible. | ||||
* | Move portage.locks imports to the top of the file. | Zac Medico | 2010-09-03 | 1 | -4/+4 |
| | |||||
* | Ensure SystemExit is never caught. | Zac Medico | 2010-08-26 | 1 | -0/+2 |
| | |||||
* | Add some more info to the 'Cannot chown a lockfile' message, since | Zac Medico | 2010-08-15 | 1 | -1/+5 |
| | | | | it's being triggered on the buildbot. | ||||
* | Remove all svn $Id keywords. | Zac Medico | 2010-03-24 | 1 | -1/+0 |
| | |||||
* | Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa | Zac Medico | 2010-01-29 | 1 | -2/+2 |
| | | | | | | <darkside@g.o> for reporting. svn path=/main/trunk/; revision=15220 | ||||
* | Define basestring as str when Python 3 is used. | Arfrever Frehtes Taifersar Arahesis | 2009-09-21 | 1 | -0/+4 |
| | | | | svn path=/main/trunk/; revision=14316 | ||||
* | Update syntax of numbers for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -3/+3 |
| | | | | | | (2to3-3.1 -f numliterals -nw ${FILES}) svn path=/main/trunk/; revision=14292 | ||||
* | Update syntax of 'except' statements for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -6/+6 |
| | | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289 | ||||
* | Use portage.os, _content_encoding, and _fs_encoding where appropriate. | Zac Medico | 2009-08-17 | 1 | -1/+4 |
| | | | | svn path=/main/trunk/; revision=14080 | ||||
* | Prepare 308 messages to localization. | Arfrever Frehtes Taifersar Arahesis | 2009-08-15 | 1 | -18/+18 |
| | | | | svn path=/main/trunk/; revision=14067 | ||||
* | Fix lockfile() docstring to correctly document the wantnewlockfile behavior. | Zac Medico | 2009-04-18 | 1 | -2/+4 |
| | | | | | | Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=13355 | ||||
* | Bug #266211 - Handle ESTALE like ENOENT in fetch and locking code. Thanks to | Zac Medico | 2009-04-15 | 1 | -2/+2 |
| | | | | | | Krzysztof Olędzki <ole+gentoo@ans.pl> for the initial patch. svn path=/main/trunk/; revision=13347 | ||||
* | For compatibility with python-3.0, use isinstance() instead of type(). | Zac Medico | 2009-02-19 | 1 | -11/+12 |
| | | | | svn path=/main/trunk/; revision=12633 | ||||
* | Revert chown behavior change from the previous commit, so that chown will | Zac Medico | 2009-01-16 | 1 | -11/+16 |
| | | | | | | not be called on a pre-existing file. svn path=/main/trunk/; revision=12522 | ||||
* | Bug #255101 - Fix 'Permission denied' error handling in | Zac Medico | 2009-01-16 | 1 | -9/+18 |
| | | | | | | | NewsManager.getUnreadItems(). If there's no permission to lock the unread file, skip the lock and try to read the file anyway. svn path=/main/trunk/; revision=12521 | ||||
* | Use ebegin/eend to indicate when waiting for a lock and when it's acquired. | Zac Medico | 2009-01-10 | 1 | -10/+13 |
| | | | | | | Thanks to Petteri Räty <belegeuse@g.o> for the suggestion. svn path=/main/trunk/; revision=12415 | ||||
* | Bug #249586 - Use writemsg() to send output to stderr instead of stdout. | Zac Medico | 2008-12-07 | 1 | -10/+15 |
| | | | | svn path=/main/trunk/; revision=12176 | ||||
* | Disable "waiting for lock" messages when in background mode. Thanks to Thargor | Zac Medico | 2008-08-12 | 1 | -1/+9 |
| | | | | | | for reporting. svn path=/main/trunk/; revision=11400 | ||||
* | Bug #230469 - Implement non-blocking distlocks for --fetchonly. This adds | Zac Medico | 2008-07-03 | 1 | -4/+9 |
| | | | | | | | | | | a "flags" keyword parameter to the portage.locks.lock() function. Default is flags=0. If flags contains os.O_NONBLOCK then lock() will raise portage.exception.TryAgain instead of blocking. This new flags parameter is used to implement non-blocking distlocks in fetch() when fetchonly mode is enabled. svn path=/main/trunk/; revision=10917 | ||||
* | Py3k compatibility patch by Ali Polatel <hawking@g.o>. | Zac Medico | 2008-07-02 | 1 | -5/+8 |
| | | | | | | Don't use the format raise Exception, "string" svn path=/main/trunk/; revision=10890 | ||||
* | Py3k compatibility patch #1 by Ali Polatel <hawking@g.o>. | Zac Medico | 2008-07-01 | 1 | -3/+3 |
| | | | | | | Replace dict.has_key() calls with "in" and "not in" operators.. svn path=/main/trunk/; revision=10870 | ||||
* | Bug #212882 - For compatibility with ENOENT exceptions raised from | Zac Medico | 2008-03-17 | 1 | -2/+18 |
| | | | | | | | fstat calls with CIFS, wrap fstat calls with an appropriate exception handler. svn path=/main/trunk/; revision=9474 | ||||
* | Bug #212882 - Fix lockfile() to handle errno.EACCES raised from the fcntl | Zac Medico | 2008-03-10 | 1 | -1/+1 |
| | | | | | | | call since the spec says that it's equivalent to EAGAIN and it appears that CIFS returns EACCES in this case. svn path=/main/trunk/; revision=9458 | ||||
* | Remove more unnecessary list generation. | Zac Medico | 2007-06-21 | 1 | -2/+2 |
| | | | | svn path=/main/trunk/; revision=6913 | ||||
* | For bug #170178, remove all hardcoded references to '/usr/lib/portage'. | Zac Medico | 2007-03-10 | 1 | -1/+2 |
| | | | | svn path=/main/trunk/; revision=6203 | ||||
* | Pass waiting_msg into recursive lockfile() calls. | Zac Medico | 2007-03-03 | 1 | -2/+5 |
| | | | | svn path=/main/trunk/; revision=6156 | ||||
* | For bug #138840, show a more informative message when waiting for a ↵ | Zac Medico | 2007-03-03 | 1 | -5/+8 |
| | | | | | | distfiles lock due to parallel-fetch. Thanks to David Watzke <david@watzke.cz> for the initial patch. svn path=/main/trunk/; revision=6143 | ||||
* | Namespace sanitizing, step 2 | Marius Mauch | 2007-01-25 | 1 | -4/+4 |
| | | | | | | | Rename portage.exec to portage.process to avoid syntax errors svn path=/main/trunk/; revision=5780 | ||||
* | Namespace sanitizing, step 1 | Marius Mauch | 2007-01-25 | 1 | -0/+312 |
svn path=/main/trunk/; revision=5778 |