ipc: Output the attempted filename in the bind error message.

This commit is contained in:
Ryan Pavlik 2020-05-08 14:53:03 -05:00
parent e620fa9063
commit 8f6b7b930a

View file

@ -225,8 +225,9 @@ create_listen_socket(struct ipc_server *s, int *out_fd)
ret = bind(fd, (struct sockaddr *)&addr, sizeof(addr));
if (ret < 0) {
fprintf(stderr,
"ERROR: Could not bind socket: is the "
"service running already?\n");
"ERROR: Could not bind socket to path %s: is the "
"service running already?\n",
IPC_MSG_SOCK_FILE);
#ifdef XRT_HAVE_SYSTEMD
fprintf(stderr,
"Or, is the systemd unit monado.socket or "