MLUnsetSignalHandler has been replaced by WSUnsetSignalHandler.

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.


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

See Also

MLSetSignalHandler()  MLSetSignalHandlerFromFunction()