Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
895b9a79
Commit
895b9a79
authored
Jul 08, 2010
by
Ryan Jackson
Browse files
pass mode argument when using open() with O_CREAT
parent
e08aab99
Changes
1
Hide whitespace changes
Inline
Side-by-side
sensors/slothd/slothd.c
View file @
895b9a79
...
...
@@ -349,7 +349,7 @@ int init_slothd(void) {
return
-
1
;
}
/* Try to get lock. If can't, then bail out. */
if
((
pfd
=
open
(
PIDFILE
,
O_EXCL
|
O_CREAT
|
O_RDWR
))
<
0
)
{
if
((
pfd
=
open
(
PIDFILE
,
O_EXCL
|
O_CREAT
|
O_RDWR
,
0644
))
<
0
)
{
lerror
(
"Can't create lock file."
);
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
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