* sigproc.cc (wait_for_sigthread): Use the current user sid when setting up the

signal pipe rather than relying on (eventually) the effective sid.
This commit is contained in:
Christopher Faylor 2006-03-30 00:57:59 +00:00
parent ef79d97d9f
commit 6f9b3203f2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-03-29 Christopher Faylor <cgf@timesys.com>
* sigproc.cc (wait_for_sigthread): Use the current user sid when
setting up the signal pipe rather than relying on (eventually) the
effective sid.
2006-03-29 Christopher Faylor <cgf@timesys.com>
* dcrt0.cc (child_info_fork::handle_fork): Set uid/gid in myself so

View File

@ -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);