This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
MathLink C Function


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 */ }