create nanomsg sockets in /var/lib by default
This commit is contained in:
parent
69a05ded6d
commit
5b0f2b1290
2 changed files with 4 additions and 2 deletions
|
@ -17,4 +17,6 @@
|
|||
# define PACKAGE "${PROJECT_NAME}"
|
||||
# define VERSION "${PROJECT_VERSION}"
|
||||
|
||||
#define NN_SOCKET_PATH "/var/lib/"
|
||||
|
||||
#endif /* !CONFIG_H_IN_ */
|
||||
|
|
|
@ -323,8 +323,8 @@ static int criterion_run_all_tests_impl(struct criterion_test_set *set)
|
|||
_(msg_valgrind_jobs), CR_FG_BOLD, CR_RESET);
|
||||
}
|
||||
|
||||
char url[sizeof ("ipc://criterion_.sock") + 21];
|
||||
snprintf(url, sizeof (url), "ipc://criterion_%llu.sock", get_process_id());
|
||||
char url[sizeof ("ipc://" NN_SOCKET_PATH "criterion_.sock") + 21];
|
||||
snprintf(url, sizeof (url), "ipc://" NN_SOCKET_PATH "criterion_%llu.sock", get_process_id());
|
||||
|
||||
int sock = cri_proto_bind(url);
|
||||
if (sock < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue