EV_SUSPEND(S) UNIX System V EV_SUSPEND(S)
Name
ev_suspend - suspends an event queue.
Syntax
#include <types.h>
#include <param.h>
#include <sysmacros.h>
#include <page.h>
#include <event.h>
#include <mouse.h>
int ev_suspend()
Description
ev_suspend suspends a queue from receiving input. For
example, if an application wants to fork a subshell, a call
to ev_suspend can suspend events until the subshell returns
and the queue is resumed with an ev_resume call. That way a
process in the subshell can also have an event queue. This
is required because the event manager only allows one active
event queue per terminal or multiscreen.
Diagnostics
This function returns -1 if no event queue is opened. It
returns -2 if the queue is already suspended. Normally it
returns zero.
See Also
ev_block(S), ev_close(S), ev_count(S), ev_flush(S),
ev_getdev(S), ev_getemask(S), ev_gindev(S), ev_init(S),
ev_open(S), ev_pop(S), ev_read(S), ev_resume(S),
ev_setemask(S)
(printed 6/20/89)