diff --git a/examples/nginx/.gitignore b/examples/nginx/.gitignore index e46878d35..8eafb1260 100644 --- a/examples/nginx/.gitignore +++ b/examples/nginx/.gitignore @@ -1 +1,2 @@ *_temp +logs/error.log \ No newline at end of file diff --git a/examples/nginx/logs/nginx.pid b/examples/nginx/logs/nginx.pid index 918d79d8e..79e054800 100644 --- a/examples/nginx/logs/nginx.pid +++ b/examples/nginx/logs/nginx.pid @@ -1 +1 @@ -96248 +21011 diff --git a/lib/emscripten/src/syscalls.rs b/lib/emscripten/src/syscalls.rs index 366d93c7d..491eb45c5 100644 --- a/lib/emscripten/src/syscalls.rs +++ b/lib/emscripten/src/syscalls.rs @@ -366,9 +366,6 @@ pub extern "C" fn ___syscall102( let address_len: u32 = socket_varargs.get(instance); let address = instance.memory_offset_addr(0, address as usize) as *mut sockaddr; - // we convert address as a sockaddr (even if this is incorrect), to bypass the type - // issue with libc bind - // Debug received address unsafe { let proper_address = address as *const GuestSockaddrIn; @@ -438,6 +435,7 @@ pub extern "C" fn ___syscall102( unsafe { ioctl(fd, FIOCLEX); }; + debug!("fd: {}", fd); fd