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: [9fans] APE's main
Date: Thu, 26 Apr 2007 12:10:04 -0300	[thread overview]
Message-ID: <27050359ad27ccadb8481c8da8b1f149@yourdomain.dom> (raw)

hola,

I've been porting pdcurses using draw(2) and event(2),
the thing is that einit() creates some procs that are killed when
exit() is called, and I think APE's main wasn't doing it.
since I'm an ignorant on the subject at hand I brute forced
/sys/src/ape/lib/ap/386/main9.s and now it seems to work
as spected. My question is:  "does this look right" ?

lotte% yesterday -d /sys/src/ape/lib/ap/386/main9.s
diff /n/dump/2007/0426/sys/src/ape/lib/ap/386/main9.s /sys/src/ape/lib/ap/386/main9.s
10a11
> 	MOVL	$_exits<>(SB), AX
13a15,17
> 
> DATA	_exits<>+0(SB)/4, $"main"
> GLOBL	_exits<>+0(SB), $5

thanks

Federico G. Benavento

---
/bin/fortune:
*** {02.38.001} Win - Multiple Trillian vulnerabilities

note: I'm porting lynx as a test case for the curses port
if anyone wants to play with it a binary and some cfg files
that should be in /tmp are at:
http://plan9.homeip.net/magic/webls?dir=/misc



             reply	other threads:[~2007-04-26 15:10 UTC|newest]

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

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=27050359ad27ccadb8481c8da8b1f149@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).