OpenersNotesSection(Spacer1)Details

MLUnsetSignalHandler() does nothing on Microsoft Windows.

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

MLUnsetSignalHandler() is declared in the MathLink header file (RefLink[mathlink.h, paclet:ref/file/mathlink.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

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

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

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

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

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