Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: comp.sys.amiga Subject: Re: Starting up a process without a LoadSeg? Keywords: detaching a program so it won't get unloaded Message-ID: <11608@well.UUCP> Date: 10 May 89 08:59:01 GMT References: <14338@louie.udel.EDU> <111@tardis.Tymnet.COM> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: The CIA: Third-World Governments Destabilized While-U-Wait. Lines: 35 Quote: "Opus, she's an alien transvestite robot." -- Portnoy In article <111@tardis.Tymnet.COM> jms@tardis.Tymnet.COM (Joe Smith) writes: >It's included in the _main.c routine that Leo hacked up to get robotroff to >work. It can be found on Fred Fish disk number 59. > >Given that Leo wanted robotroff's function to be a surprise, I can understand >why there are no comments in this code. But now that this section of a cute >hack is becoming useful, I would appreciate it if Leo would repost the code, >WITH COMMENTS, so that we can learn from this genius's thought processes. Well, it turns out that that's not my goodie, either. It's Jim Goodnow II's (author of the Manx C compiler). I'm not entirely certain I can go around distributing even a modified version of it. (I'll ask the next time I see him.) I tested 'Robotroff' on a Gamma version of 1.3 once, and it crashed the system all the way back to Kickstart. I don't know why it did this, but that _main.c module has always been a wee bit suspect. If ever I get sufficient free time (ha!), I'll rewrite most of my hacks to be more compatible with contemporary OS technology. I understand that, if you have Manx 3.6 or Lattice 5.0?, detatching startup modules are provided. >I've read the code, and the more I think I understand it the more I'm sure >that I'm missing something important. Honest. > It's not *that* terrible, is it? The only really icky part is where he turns the SegList into a MemList and sticks it in the task structure. _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab -- The Guy in The Cape INET: well!ewhac@ucbvax.Berkeley.EDU \_ -_ Recumbent Bikes: UUCP: pacbell > !{well,unicom}!ewhac O----^o The Only Way To Fly. hplabs / (pronounced "AE-wack") "Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor