8000 fix: rename socket (#212) · oneapi-src/level-zero-tests@57125fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 57125fe

Browse files
authored
fix: rename socket (#212)
* socket must be created in the accessible directory, the common practice is to use `/tmp` Signed-off-by: Kozlowski, Marek <marek.kozlowski@intel.com>
1 parent 98e51dc commit 57125fe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

utils/net/include/net/test_ipc_comm.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ template <typename T> void send_ipc_handle(const T &ipc_handle);
4343

4444
// definition
4545
template <typename T> int receive_ipc_handle(char *data) {
46-
const char *socket_path = "ipc_socket";
46+
const char *socket_path = "/tmp/lzt_ipc_socket";
4747

4848
struct sockaddr_un local_addr, remote_addr;
4949
local_addr.sun_family = AF_UNIX;
@@ -95,7 +95,7 @@ template <typename T> int receive_ipc_handle(char *data) {
9595
}
9696

9797
template <typename T> void send_ipc_handle(const T &ipc_handle) {
98-
const char *socket_path = "ipc_socket";
98+
const char *socket_path = "/tmp/lzt_ipc_socket";
9999

100100
struct sockaddr_un remote_addr;
101101
remote_addr.sun_family = AF_UNIX;

utils/net/src/test_ipc_comm.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
namespace level_zero_tests {
1818

1919
#ifdef __linux__
20-
const char *socket_path = "ipc_socket";
21-
2220
int read_fd_from_socket(int unix_socket, char *data) {
2321
// call recvmsg to receive the descriptor on the unix_socket
2422
int fd = -1;

0 commit comments

Comments
 (0)
0