From 6f9b3203f2ec5c8c22d7d3cfe67274586995dfa3 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 30 Mar 2006 00:57:59 +0000 Subject: * sigproc.cc (wait_for_sigthread): Use the current user sid when setting up the signal pipe rather than relying on (eventually) the effective sid. --- winsup/cygwin/sigproc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/sigproc.cc') diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 7d22af3be..10ff3cefc 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -137,7 +137,7 @@ void __stdcall wait_for_sigthread (bool forked) { char char_sa_buf[1024]; - PSECURITY_ATTRIBUTES sa_buf = sec_user_nih ((PSECURITY_ATTRIBUTES) char_sa_buf); + PSECURITY_ATTRIBUTES sa_buf = sec_user_nih ((PSECURITY_ATTRIBUTES) char_sa_buf, cygheap->user.sid()); if (!CreatePipe (&my_readsig, &my_sendsig, sa_buf, 0)) api_fatal ("couldn't create signal pipe%s, %E", forked ? " for forked process" : ""); ProtectHandle (my_readsig); -- cgit v1.2.3