projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6b03b1
)
cfg: Initialize lock_fd to -1.
author
Ben Pfaff
<blp@nicira.com>
Wed, 11 Mar 2009 21:23:15 +0000
(14:23 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 11 Mar 2009 21:44:57 +0000
(14:44 -0700)
Otherwise cfg_unlock() will close stdin on the first call. Since
create_lockfile() calls remove_lockfile() as its first action, that's
on every useful execution.
lib/cfg.c
patch
|
blob
|
history
diff --git
a/lib/cfg.c
b/lib/cfg.c
index 559b8a69934615db1981134732184dcfb68c7b68..29bc495be13b6f39117dc9a5a4bc3168fcdd2843 100644
(file)
--- a/
lib/cfg.c
+++ b/
lib/cfg.c
@@
-61,7
+61,7
@@
static char *tmp_name;
/* Lock information. */
static char *lock_name;
-int lock_fd;
+int lock_fd
= -1
;
/* Flag to indicate whether local modifications have been made. */
bool dirty;