9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: benavento@gmail.com (Federico G. Benavento)
To: 9fans@cse.psu.edu
Subject: Re: [9fans] APE's main
Date: Thu, 26 Apr 2007 12:34:55 -0300	[thread overview]
Message-ID: <b5eeab1dadb84ebe1f09bde403e761e4@yourdomain.dom> (raw)
In-Reply-To: <20070426151424.3428C1E8C2B@holo.morphisms.net>

> 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	other threads:[~2007-04-26 15:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26 15:10 Federico G. Benavento
2007-04-26 15:14 ` Russ Cox
2007-04-26 15:34   ` Federico G. Benavento [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b5eeab1dadb84ebe1f09bde403e761e4@yourdomain.dom \
    --to=benavento@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).