OpenersNotesSection(Spacer1)Details

WSUnsetSignalHandler() does nothing on Microsoft Windows.

WSUnsetSignalHandler() returns WSEOK upon successful completion and one of the other error codes as specified in (RefLink[wstp.h, paclet:ref/file/wstp.h]) in the event of an error.

WSUnsetSignalHandler() 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"

void s(int signum)
{
	/* ... */
}

/* remove a SIGHUP signal-handling function from a WSTP environment */
void f(WSENV ep)
{
	int err;

	err = WSUnsetSignalHandler(ep, SIGHUP, (void *)s);
	if(error != WSEOK)
		{ /* unable to remove the function from WSTP's signal-handler mechanism */ }
}

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

({{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[Low-Level WSTP Operations, paclet:guide/LowLevelWSTPOperations])}})}})