While playing with pyevent, I saw this code:
def abort():
"""Abort event dispatch loop."""
cdef extern int event_gotsig
cdef extern int (*event_sigcb)()
event_sigcb = __event_sigcb
event_gotsig = 1
This is used in exception handling - if a callback throws an exception,
it do
Christopher Layne wrote:
On Tue, Sep 18, 2007 at 10:10:42PM -0500, M.H.VanLeeuwen wrote:
Hi,
When event_add(&ev, &tv) returns -1, what is the proper way to clean up.
For example function XYZZY() takes socket fd as an argument
XYZZY(int sockfd)
{
allocate event structure related memory...
.
On Tue, Sep 18, 2007 at 10:10:42PM -0500, M.H.VanLeeuwen wrote:
> Hi,
>
> When event_add(&ev, &tv) returns -1, what is the proper way to clean up.
>
> For example function XYZZY() takes socket fd as an argument
>
> XYZZY(int sockfd)
> {
> allocate event structure related memory...
> ...
>
Hi,
When event_add(&ev, &tv) returns -1, what is the proper way to clean up.
For example function XYZZY() takes socket fd as an argument
XYZZY(int sockfd)
{
allocate event structure related memory...
...
event_set(&(event->event), sockfd, EV_TIMEOUT | EV_WRITE |
EV_PERSIST, connected, &(
1. event_rpcgen.py will fail to open regress.rpc if building outside the source
directory.
-cl
--
Index: Makefile.am
===
--- Makefile.am (revision 433)
+++ Makefile.am (working copy)
@@ -18,7 +18,7 @@
bench_SOURCES = bench.c
reg
1. Change output to provide a single line pct done + avg/min/max.
2. Add "-l" flag to support previous style.
3. Add "-x n" flag to specify max loop iterations.
In a nutshell, output looks like this:
$ debug/test/bench -x 8192
done avg min max
17% 942