OpenersNotesSection(Spacer1)Details

Use WSDoNotHandleSignalParameter() to disable signal handling for signal s at (NonWLLink[WSInitialize(), paclet:ref/c/WSInitialize]) time.

WSDoNotHandleSignalParameter() returns WSEOK on success and a nonzero value if the function fails.

WSDoNotHandleSignalParameter() is declared in the WSTP header file (RefLink[wstp.h, paclet:ref/file/wstp.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include <signal.h>
#include "wstp.h"

int main()
{
	WSEnvironmentParameter p;
	WSENV env;
	long apiResult;
	
	p = WSNewParameters(WSREVISION, WSAPIREVISION);
	if(p == (WSEnvironmentParameter)0)
	{ /* Unable to create environment parameter object */ }

	apiResult = WSDoNotHandleSignalParameter(p, SIGHUP);
	if(apiResult != WSEOK)
	{ /* Failed to disable SIGHUP signal handling */ }

	env = WSInitialize(p);
	if(env == (WSENV)0)
	{ /* Unable to create environment object */ }

	WSReleaseParameters(p);

	/* ... */

	WSDeinitialize(env);
	return 0;	
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[WSHandleSignal(), paclet:ref/c/WSHandleSignal])  ▪  (NonWLLink[WSSetSignalHandler(), paclet:ref/c/WSSetSignalHandler])  ▪  (NonWLLink[WSSetSignalHandlerFromFunction(), paclet:ref/c/WSSetSignalHandlerFromFunction])  ▪  (NonWLLink[WSStopHandlingSignal(), paclet:ref/c/WSStopHandlingSignal])  ▪  (NonWLLink[WSUnsetSignalHandler(), paclet:ref/c/WSUnsetSignalHandler])  ▪  (NonWLLink[WSInitialize(), paclet:ref/c/WSInitialize])  ▪  (NonWLLink[WSNewParameters(), paclet:ref/c/WSNewParameters])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP C API Developer Guide (Mac OS X), paclet:tutorial/WSTPDeveloperGuide-MacintoshOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Unix and Linux), paclet:tutorial/WSTPDeveloperGuide-UnixOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Windows), paclet:tutorial/WSTPDeveloperGuide-WindowsOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Alphabetical Listing of WSTP C Functions, paclet:guide/AlphabeticalListingOfWSTPCFunctions])}, {▪(RefLinkPlain[WSTP Connection Management, paclet:guide/WSTPConnectionManagement])}})}})