> no, not at all.  you are passing "main" to
> the exit function, which expects an integer.
> the old one was correct: it passes the return
> value of int main() to exit.  
> 
yeah, now I see it

> i'm confused about why changing the
> exit value would make things start working
> anyway.  maybe it didn't really.
> 
I have no idea, what I know is that if I manually do
exit(0) in main() the event procs are killed by atexit()
and without exit(0) stay there.

> my guess would be your actual problem
> is that draw and event use atexit, which
> ape doesn't provide.  i'm surprised that
> you don't get link errors.
> 
ape has atexit() /sys/src/ape/lib/ap/stdio/atexit.c 

thanks for the explanation

Federico G. Benavento

---
/bin/fortune:
Please wait. This can take some time.

Reply via email to