diff options
| -rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 693525ae68..73c66c248b 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -3504,7 +3504,7 @@ int open_socket(const char *service) { struct sockaddr addr; socklen_t alen = sizeof(addr); - int fd = accept(s, &addr, &alen); + int fd = accept4(s, &addr, &alen, SOCK_CLOEXEC); // Close socket just after accept(), to make sure that connect() by client will get error // when the socket is used by the other services. |