Re: graphicsmagick signal handler problem

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Thu, 1 Mar 2018, yzh卯帽潞锚 wrote:

> hi,
>
> I'm a GM API user. I use GM in Go lang. Since Golang require that
>
> "If the non-Go code installs any signal handlers, it must use the SA_ONSTACK flag with sigaction. Failing to do so is likely to cause the program to crash if the signal is received." (https://golang.org/pkg/os/signal/)
>
> So could GM let user determine whether or not set signal handlers (i.e., use a bool variable) in InitializeMagick?

Would it work if GM was to specify SA_ONSTACK when the feature is 
available?  What harm might result from making this the default?

Otherwise, the using library/application will need to (re)-establish 
its own signal handlers with sigaction after invoking 
InitializeMagick().

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.