From aea19a50759c52a5af74005d13ade9dee6c7a3b5 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 17 Apr 2025 22:40:25 +0200 Subject: [PATCH] drop! debug macos ci --- src/unix/core.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/unix/core.c b/src/unix/core.c index 115cbe699..5339eb8b8 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -642,7 +642,15 @@ int uv__close_nocheckstdio(int fd) { } +#ifdef __APPLE__ +#include +#endif int uv__close(int fd) { +#ifdef __APPLE__ + void* frames[32]; + int n; + if(fd < 3) fprintf(stderr,"fd:%d\n",fd), n=backtrace(frames,32), backtrace_symbols_fd(frames,n,2); +#endif assert(fd > STDERR_FILENO); /* Catch stdio close bugs. */ #if defined(__MVS__) SAVE_ERRNO(epoll_file_close(fd));