summaryrefslogtreecommitdiff
path: root/stest.c
diff options
context:
space:
mode:
Diffstat (limited to 'stest.c')
-rw-r--r--stest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stest.c b/stest.c
index d60ae74..94b5264 100644
--- a/stest.c
+++ b/stest.c
@@ -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);