Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5274c33

Browse files
committed
According to Craig H Rowland, openbsd2 is yet another BSD variant that
uses the BSD version of the lock structure. Sigh, @!%$.
1 parent 8f35681 commit 5274c33

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/posixfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def lock(self, how, *args):
178178
# additions for AIX by [email protected]
179179
import sys, os
180180
if sys.platform in ('netbsd1',
181+
'openbsd2',
181182
'freebsd2', 'freebsd3',
182183
'bsdos2', 'bsdos3', 'bsdos4'):
183184
flock = struct.pack('lxxxxlxxxxlhh', \
@@ -193,6 +194,7 @@ def lock(self, how, *args):
193194

194195
if '?' in how:
195196
if sys.platform in ('netbsd1',
197+
'openbsd2',
196198
'freebsd2', 'freebsd3',
197199
'bsdos2', 'bsdos3', 'bsdos4'):
198200
l_start, l_len, l_pid, l_type, l_whence = \

0 commit comments

Comments
 (0)