[ < ] [ > ]   [ << ] [ 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.


This document was generated by John P. Willis on October 28, 2020 using texi2html 1.82.