close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23461 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -76,6 +76,8 @@ connect_egd(const char *path)
|
||||
if (fd < 0)
|
||||
return -1;
|
||||
|
||||
rk_cloexec(fd);
|
||||
|
||||
if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) != 0) {
|
||||
close(fd);
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user