[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.2 Registering an Asynchronous Event Handler

To register an event handler, use the following syntax:

 
  SET ^$JOB($JOB,"EVENT",event-class,event-identifier)=entryref

For example, use the following to register ^RESIZE as an asynchronous event handler for SIGWINCH events:

 
  SET ^$JOB($JOB,"EVENT","INTERRUPT","SIGWINCH")="^RESIZE"

This by itself will not enable asynchronous event handling, as it merely registers an event handler, associating it with event class INTERRUPT and event identifier SIGWINCH.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by root on October 14, 2020 using texi2html 1.82.