Skip to content

Commit

Permalink
- Opened up fcntl() for compatibility reasons.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajamshed committed Oct 5, 2018
1 parent d4e9266 commit 0c38821
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions mtcp/src/mtcp_api_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ mtcp_wrapper_fcntl(int sock_fd, int sock_cmd, void *sock_arg)
if (not_mtcp_socket_fd(&mctx, sock_fd))
return MTCP_KERNEL_CALL(fcntl)(sock_fd, sock_cmd, sock_arg);

abort();
/* not supported */
return -1;
/* fcntl logistics are handled in setsockopt() */
/* (partially) supported */
return 0;
}
/*----------------------------------------------------------------------------*/
__attribute__((gnu_inline)) inline int
Expand Down Expand Up @@ -847,6 +847,11 @@ mtcp_app_init()

ret = 0;

printf("PATH: %s\n", getenv("PATH"));
printf("MAIL: %s\n", getenv("MAIL"));
printf("USER: %s\n", getenv("USER"));
printf("MTCP_CONFIG: %s\n", getenv("MTCP_CONFIG"));

/* Set verbose level appropriately */
#ifndef DISABLE_DPDK
#if RTE_VERSION < RTE_VERSION_NUM(17, 05, 0, 16)
Expand Down

0 comments on commit 0c38821

Please sign in to comment.