|
SOLUTIONS
|
MATHEMATICA MATHLINK C FUNCTION
MLUnsetSignalHandler()
int MLUnsetSignalHandler(MLENV env, int signum, void *f)
removes the Unix signal-handler function f as a signal handler for signal signum from the MathLink library signal-handling mechanism.
DetailsDetails
- MLUnsetSignalHandler() does nothing on Microsoft Windows.
- MLUnsetSignalHandler() returns MLEOK upon successful completion and one of the other error codes as specified in mathlink.h in the event of an error.
- MLUnsetSignalHandler() is declared in the MathLink header file mathlink.h.
ExamplesExamplesopen allclose all
Basic Examples (1)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 */ }
}
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
