Re: Questions about FORK.
"Valnir" <[email protected]> Tue, 15 Aug 2006 15:55:45 -0400
| Newsgroups | gmane.games.devel.mud.rom |
|---|---|
| Message-ID | <[email protected]> |
So other than keeping a seperate data file with the email addresses that I then have to maintain that as well, is there any clean way to scan all the files? I'm looking for as clean as possible without too many data sources to worry about. Sorry to be such a pain. - Valnir ----- Original Message ----- From: "Mark Roberts" <[email protected]> To: "Valnir" <[email protected]> Sent: Tuesday, August 15, 2006 3:21 PM Subject: Re: Questions about FORK. > Hey, > > There are 2 easy ways to resolve this without involving anything as > complex as threading. First: have a master file that contains a list of > all accounts and associated email addresses. > > Ex: >> Someone attempts to create an account on system with email address >> [email protected] > System checks file ~/accts for a line with [email protected] > Exists > Deny access > Other > Create or verify account > > Second: Have the email address be the actual account name. >> Someone attempts to log into or create an account on system with email >> address [email protected] > System checks for the file ~/accts/[email protected] to exist. > Exists > Force login attempt > Other > Create or verify account > > It would certainly prevent any sort of "hiccups" shy of the normal system > call resources. Also, it never is good design to introduce something neat > or cool simply because it is neat or cool. And threads are a dangerous > thing, and are extremely difficult to debug. Uggghhhh. I remember > debugging some threaded code in college. It took the better part of the > day to realize the POINT of the assignment was to see the race condition. > Gah. Sneaky professor. > > Mark > -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom