kolyshkin commented on this pull request.


> @@ -330,26 +330,64 @@ static int Pmkfifo(lua_State *L)                /** 
> mkfifo(path) */
 }
 
 
+static void set_cloexec(int fd)
+{
+       int flag = fcntl(fd, F_GETFD);
+
+       if (flag == -1 || (flag & FD_CLOEXEC))
+               return;
+
+       fcntl(fd, F_SETFD, FD_CLOEXEC);

This I just copied from the old code (and the only known flag for now is 
CLOEXEC).

Anyway, will do.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/444#discussion_r189106021
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to