Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
unix: mkdir VPP_RUN_DIR before opening a socket in it
[vpp.git]
/
src
/
vlib
/
unix
/
util.c
diff --git
a/src/vlib/unix/util.c
b/src/vlib/unix/util.c
index
edc3e59
..
51b4a4e
100644
(file)
--- a/
src/vlib/unix/util.c
+++ b/
src/vlib/unix/util.c
@@
-222,6
+222,19
@@
done:
return r;
}
return r;
}
+clib_error_t *
+unix_make_vpp_run_dir (void)
+{
+ int rv;
+
+ rv = mkdir (VPP_RUN_DIR, 0755);
+ if (rv && errno != EEXIST)
+ return clib_error_return (0, "mkdir '%s' failed errno %d",
+ VPP_RUN_DIR, errno);
+
+ return 0;
+}
+
/*
* fd.io coding-style-patch-verification: ON
*
/*
* fd.io coding-style-patch-verification: ON
*