Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 1996 12:33:45 PST
From:      "Marty Leisner" <leisner@sdsp.mc.xerox.com>
To:        Paul Hatchman <paul@sfe.com.au>
Cc:        linux-kernel@vger.rutgers.edu, hackers@freebsd.org
Subject:   Re: signal masks and select 
Message-ID:  <9602092033.AA14852@gnu.mc.xerox.com>
In-Reply-To: Your message of "Tue, 30 Jan 1996 23:49:00 PST." <199601310749.AA28625@rex.sfe.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help

Thanks for the help...

I liked this solution for now...
> 
> This can be "solved" by using setjmp/longjmp with select.
> ie 
> 	if (setjmp (env, 1) == 0)
> 	{
> 		set_sigmask(unblock desired signals)
> 		select(...)
> 	}
> 
> and your signal handler does a longjmp (env)
> 

But this is a kludgey workaround...and using pthreads (where each thread
has a signal mask) means env becomes thread private data...

It seems very reasonable to have a system call:
	select_with_newmask(new_mask, <old select parameters

-- 
marty
leisner@sdsp.mc.xerox.com  
Member of the League for Programming Freedom





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9602092033.AA14852>