🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13074

Re: Dupping FileHandles && Run

#13074
From: Matt Dillon
Date: Mon, 12 Jun 1989 22:32
24 lines
1561 bytes
:  I know that AmigaDOS doesn't support the duplication of FileHandles
:(which makes it rather difficult to pass a FileHandle to another process)
:[Yes, I know we've been through this before] but doesn't "run" have to do
:something of the sort to allow a "background" process write to the same
:window? This is essentially the type of thing that I want to do.
:Does an 'Open("*",MODE_OLDFILE)' find the current input, current window
:(pr_WindowPtr?), console task (pr_ConsoleTask) or what?
:
:  In case anyone wants to know what I'm doing---email me. I'm afraid I'll
:get flamed otherwise.

	Yes, RUN and NEWCLI attempt to Open("*", 1005) by sending a DOS
open packet with the filename '*' to the ConsoleHandler (or whatever
the field is called) of the Process structure.  You cannot duplicate this
feat by Open("*",1005) as that is directed to the filesystem... you need
to send the packet manually.

	The console device understands '*'.  It knows which console to
duplicate because each instance of the console device is a separate
task (and this a different address for pr_Console[Task/Handler??]).  

	I agree that we need a *real* Dup() call.

					-Matt
Technical Details
Message-ID: <8906122232.AA02030@hermes.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!HERMES.BERKELEY.EDU!dillon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!HERMES.BERKELEY.EDU!dillon
From: dillon@HERMES.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Dupping FileHandles && Run
Message-ID: <8906122232.AA02030@hermes.Berkeley.EDU>
Date: 12 Jun 89 22:32:02 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 24