UNIX.COM Recommends OpenPhone:   A Modern Skype Replacement — Free 14-Day Trial

debian man page for xpaoom

Query: xpaoom

OS: debian

Section: 7

Links: debian man pages | All man pages

Forums: Unix Linux Community | Forum Categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

xpaoom(7)							SAORD Documentation							 xpaoom(7)

NAME
Xpaoom - What happens when XPA runs out of memory?
SYNOPSIS
When XPA can't allocate memory, it exits. You can arrange to have it call longjmp() instead.
DESCRIPTION
When an XPA server or client cannot allocate memory, it will attempt to output an error message and then exit. If this is not satisfactory (e.g., perhaps your program is interactive and can recover from OOM errors), you can tell XPA to call longjmp() to go to a recovery branch. To pass the requisite jmp_buf variable to XPA, make the following call: XPASaveJmp(void *env); The value of env is the address of a jmp_buf variable that was previously passed to setjmp(). For example: jmp_buf env; ... if( setjmp(jmp_buf) != 0 ){ /* out of memory -- take corrective action, if possible */ } else { /* save env for XPA */ XPASaveJmp((void *)&jmp_buf); } // enter main loop ...
SEE ALSO
See xpa(7) for a list of XPA help pages version 2.1.14 June 7, 2012 xpaoom(7)
Related Man Pages
xpacmdadd(3) - debian
xpainfo(3) - debian
xpamainloop(3) - debian
xpaopen(3) - debian
setjmp(2) - plan9
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Introduction
One instance of comparing grep and awk
Find columns in a file based on header and print to new file
My first PERL incarnation... Audio Oscillograph