[Wine-patches] server: Prevent receiving signals from opened pseudo-terminal (eterbug #2827).

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Янв 23 14:40:33 MSK 2009


----------- следующая часть -----------
From 4b3167a83b095189a96be36c6c297152824ea0f6 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Fri, 23 Jan 2009 14:30:12 +0300
Subject: [PATCH] server: Prevent receiving signals from opened pseudo-terminal (eterbug #2827).

---
 server/fd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/fd.c b/server/fd.c
index 0497efe..f37c0d5 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -1654,9 +1654,9 @@ struct fd *open_fd( const char *name, int flags, mode_t *mode, unsigned int acce
 
     /* Etersoft: Set existing modes from special lock region state */
     if (etersoft_sharing_open)
-        fd->unix_fd = etersoft_sharing_open(name, rw_mode | (flags & ~O_TRUNC), sharing, *mode );
+        fd->unix_fd = etersoft_sharing_open(name, rw_mode | (flags & ~O_TRUNC) | O_NOCTTY, sharing, *mode );
     else
-        fd->unix_fd = open(name, rw_mode | (flags & ~O_TRUNC), *mode );
+        fd->unix_fd = open(name, rw_mode | (flags & ~O_TRUNC) | O_NOCTTY, *mode );
     /* Can we detect cifs here?
     fd->cifs       = 0; */
     if (fd->unix_fd == -1)
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches