From 06d58ae1c43c7f95b80e0aabfa6ae56bf8cfbb17 Mon Sep 17 00:00:00 2001 From: benoitc Date: Tue, 16 Mar 2010 22:15:32 +0100 Subject: [PATCH] oups revert this change in util --- gunicorn/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gunicorn/util.py b/gunicorn/util.py index 75224f82..9850c773 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -101,8 +101,9 @@ def get_maxfd(): return maxfd def close_on_exec(fd): - flags = fcntl.fcntl(fd, fcntl.F_GETFD) | fcntl.FD_CLOEXEC - fcntl.fcntl(fd, fcntl.F_SETFL, flags) + flags = fcntl.fcntl(fd, fcntl.F_GETFD) + flags |= fcntl.FD_CLOEXEC + fcntl.fcntl(fd, fcntl.F_SETFD, flags) def set_non_blocking(fd): flags = fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK