Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
1dc3733b
Commit
1dc3733b
authored
Oct 30, 2008
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Fixed file locking.
Rev: nettle/tools/sexp-conv.c:1.3
parent
3880cae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tools/sexp-conv.c
tools/sexp-conv.c
+6
-1
No files found.
tools/sexp-conv.c
View file @
1dc3733b
...
...
@@ -380,8 +380,13 @@ main(int argc, char **argv)
struct
flock
fl
;
memset
(
&
fl
,
0
,
sizeof
(
fl
));
fl
.
l_type
=
F_WRLCK
;
fl
.
l_whence
=
SEEK_SET
;
fl
.
l_start
=
0
;
fl
.
l_len
=
0
;
/* Means entire file. */
if
(
fcntl
(
STDOUT_FILENO
,
F_SETLKW
,
&
fl
)
==
-
1
)
die
(
"Locking output file failed:
$
s
\n
"
,
strerror
(
errno
));
die
(
"Locking output file failed:
%
s
\n
"
,
strerror
(
errno
));
}
#endif
/* HAVE_FCNTL_LOCKING */
if
(
options
.
hash
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment