🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Manx help

#10180
From: Peter da Silva
Date: Tue, 01 Nov 1988 12:34
25 lines
1373 bytes
In article <8810311911.AA06094@cory.Berkeley.EDU>, dillon@CORY.BERKELEY.EDU (Matt Dillon) writes:
> 	ParentDir() returns a NEW LOCK, right?  Therefore, you *MUST*
> UnLock the lock returned by ParentDir() eventually before exiting.

Yeh, that's what I said.

> >[Unlocking your original lock] You should only do this
> >if you're writing a replacement to CD.

> 	No you can't!

If you're writing a replacement for "CD", you certainly can. This is the only
situation in which you should do something like this, of course. If your
program calls "CD" it's got to expect that its current directory is going
to be changed.

> 	Forgive the lack of error checking in line 4 of this example:

[ example that's basically identical to the example I gave, except it has
  less error checking than mine, deleted ]
-- 
		Peter da Silva  `-_-'  peter@sugar.uu.net
		 Have you hugged  U  your wolf today?

	Disclaimer: I accept full responsibility for my own typos.
Technical Details
Message-ID: <2939@sugar.uu.net>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!uhnix1!sugar!peter
References: <8810311911.AA06094@cory.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!uhnix1!sugar!peter
From: peter@sugar.uu.net (Peter da Silva)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Manx help
Message-ID: <2939@sugar.uu.net>
Date: 1 Nov 88 12:34:43 GMT
References: <8810311911.AA06094@cory.Berkeley.EDU>
Organization: Sugar Land Unix - Houston, TX
Lines: 24