Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

stophandler.h File Reference


Detailed Description

This handler stops the monitor. It is used to control the termination of wire programs.

Sends a SIGTERM to parent process. If restart: is used then sends SIGHUP.

Wire keywords (standard handler keywords documented in Wire ):

Example:

// any events will cause the monitor to stop create handler stop { regevent: $events }

Events accepted:
TypeDescription
any Stop monitor

#include <stdio.h>
#include "monitor.h"
#include "wire.h"

Go to the source code of this file.

Data Structures

struct  aw_stophandler_t
 Stop handler object. More...


Functions

aw_stophandler_t * aw_create_stophandler (u_int32_t restart, int32_t(*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), int32_t(*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), const aw_alarm_sched_t *sched, aw_logger_t *aware_logger)
 Create a stop handler.

void aw_free_stophandler (aw_stophandler_t *h)
 Free handler and all associated resources.

aw_handler_t * aw_wire_stophandler (aw_wire_mkhandler_args_t *args)
 Create a stophandler using "wire". See header doc for keyword documentation.


Function Documentation

aw_stophandler_t* aw_create_stophandler (  u_int32_t  restart,
int32_t(*  regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
int32_t(*  regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
const aw_alarm_sched_t *  sched,
aw_logger_t *  aware_logger
) 
 

Create a stop handler.

aw_create_stophandler

Parameters:
restart Non-zero if restart instead of stop
regevent Function pointer for event registration
regmaskevent Function pointer for event mask registration
sched Run schedule
aware_logger Aware logger object
Returns:
Handler object

void aw_free_stophandler (  aw_stophandler_t *  h  ) 
 

Free handler and all associated resources.

aw_free_stophandler

Parameters:
h The handler

aw_handler_t* aw_wire_stophandler (  aw_wire_mkhandler_args_t *  args  ) 
 

Create a stophandler using "wire". See header doc for keyword documentation.

aw_wire_stophandler

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)