diff options
Diffstat (limited to 'ctest.c')
-rw-r--r-- | ctest.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ main(int argc, char **argv) { exit(EXIT_FAILURE); } - sfd = socket(AF_INET, SOCK_STREAM, 0); + sfd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); if (sfd < 0) { perror("socket"); exit(EXIT_FAILURE); |