Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Fixup lock_fd
· 095f5d4d
Joerg Jaspert
authored
Apr 19, 2018
095f5d4d
Merge branch 'master' into deploy
· 24a99fc4
Joerg Jaspert
authored
Apr 19, 2018
* master: Fixup lock_fd
24a99fc4
Show whitespace changes
Inline
Side-by-side
dak/new_security_install.py
View file @
24a99fc4
...
...
@@ -89,7 +89,7 @@ def sudo(arg, fn, exit):
def
do_Approve
():
sudo
(
"
A
"
,
_do_Approve
,
True
)
def
_do_Approve
():
print
"
Locking unchecked
"
lock_fd
=
os
.
open
(
os
.
path
.
join
(
cnf
[
"
Dir::Lock
"
],
'
unchecked.lock
'
)
,
os
.
O_RDWR
|
os
.
O_CREAT
)
lock_fd
=
os
.
open
(
'
/srv/security-master.debian.org/lock/
unchecked.lock
'
,
os
.
O_RDWR
|
os
.
O_CREAT
)
while
True
:
try
:
fcntl
.
flock
(
lock_fd
,
fcntl
.
LOCK_EX
|
fcntl
.
LOCK_NB
)
...
...