Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > MathLink C Language Functions >
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.
  • 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.
#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 */ }
}
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team