MLDoNotHandleSignalParameter (C Function)

MLDoNotHandleSignalParameter has been replaced by WSDoNotHandleSignalParameter.

long MLDoNotHandleSignalParameter(MLEnvironmentParameter p,int s)

disables MathLink handling of signal s.

Details

  • Use MLDoNotHandleSignalParameter() to disable signal handling for signal s at MLInitialize() time.
  • MLDoNotHandleSignalParameter() returns MLEOK on success and a nonzero value if the function fails.
  • MLDoNotHandleSignalParameter() is declared in the MathLink header file mathlink.h.

Examples

Basic Examples  (1)

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

int main()
{
    MLEnvironmentParameter p;
    MLENV env;
    long apiResult;
    
    p = MLNewParameters(MLREVISION, MLAPIREVISION);
    if(p == (MLEnvironmentParameter)0)
    { /* Unable to create environment parameter object */ }

    apiResult = MLDoNotHandleSignalParameter(p, SIGHUP);
    if(apiResult != MLEOK)
    { /* Failed to disable SIGHUP signal handling */ }

    env = MLInitialize(p);
    if(env == (MLENV)0)
    { /* Unable to create environment object */ }

    MLReleaseParameters(p);

    /* ... */

    MLDeinitialize(env);
    return 0;    
}