Chromium Code Reviews| Index: pylib/gyp/flock_tool.py |
| diff --git a/pylib/gyp/flock_tool.py b/pylib/gyp/flock_tool.py |
| index 3e7efff26ea80fbf8b2343231019265c0cfde650..64bacfb5c1a3d6ad32d9b2de54c23540ad0fcc00 100755 |
| --- a/pylib/gyp/flock_tool.py |
| +++ b/pylib/gyp/flock_tool.py |
| @@ -40,7 +40,10 @@ class FlockTool(object): |
| # with EBADF, that's why we use this F_SETLK |
| # hack instead. |
| fd = os.open(lockfile, os.O_WRONLY|os.O_NOCTTY|os.O_CREAT, 0666) |
| - op = struct.pack('hhllhhl', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0) |
| + if sys.platform.startswith('aix'): |
|
Nico
2014/11/21 17:32:14
Please add a comment saying
# Python on AIX is
|
| + op = struct.pack('hhIllqq', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0) |
| + else: |
| + op = struct.pack('hhllhhl', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0) |
| fcntl.fcntl(fd, fcntl.F_SETLK, op) |
| return subprocess.call(cmd_list) |