diff options
Diffstat (limited to 'stest.c')
-rw-r--r-- | stest.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,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); |