jl777 7 years ago
parent
commit
3829b2f558
  1. 1
      crypto777/nanosrc/aio/worker_posix.c
  2. 4
      crypto777/nanosrc/utils/efd_eventfd.c
  3. 2
      crypto777/nanosrc/utils/efd_socketpair.c

1
crypto777/nanosrc/aio/worker_posix.c

@ -103,7 +103,6 @@ int nn_worker_init(struct nn_worker *self)
{
int32_t rc;
PNACL_message("nn_worker_init %p\n",self);
//sleep(1);
rc = nn_efd_init(&self->efd);
PNACL_message("efd init: rc.%d\n",rc);
if ( rc < 0 )

4
crypto777/nanosrc/utils/efd_eventfd.c

@ -32,9 +32,9 @@ int nn_efd_init(struct nn_efd *self)
{
int rc;
int flags;
//PostMessage("inside efd_init eventfd\n");
PNACL_msg("inside efd_init eventfd\n");
self->efd = eventfd(0, EFD_CLOEXEC);
//PostMessage("self->efd: %d\n",self->efd);
PNACL_msg("self->efd: %d\n",self->efd);
if (self->efd == -1 && (errno == EMFILE || errno == ENFILE))
return -EMFILE;
errno_assert(self->efd != -1);

2
crypto777/nanosrc/utils/efd_socketpair.c

@ -35,7 +35,7 @@ int nn_efd_init (struct nn_efd *self)
int rc;
int flags;
int sp [2];
PNACL_msg("socketpair efdinit\n");
#if defined SOCK_CLOEXEC
rc = socketpair (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sp);
#else

Loading…
Cancel
Save