Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
AFKMud 2.2.2
Mar 3, 2019 5:35 pm
By Samson
Development
Nov 28, 2018 12:10 pm
By Keirath
First Immortal
Oct 12, 2018 2:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018 7:31 pm
By joeyfogas
question on overland code
May 31, 2018 12:03 pm
By joeyfogas
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
AFKMud 2.2.2
Author: AFKMud Team
Submitted by: Samson
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Bing

Members: 0
Guests: 19
Stats
Files
Topics
Posts
Members
Newest Member
483
3,743
19,401
655
RodrickMci
Today's Birthdays
tphegley (37)
Related Links
» SmaugMuds » Codebases » AFKMud Support & Development » Why is resolver.c a seperate ...
Forum Rules | Mark all | Recent Posts

Why is resolver.c a seperate program?
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jun 25, 2009 9:57 pm
Go to the top of the page
Go to the bottom of the page

Hygelac
Fledgling
GroupMembers
Posts3
JoinedMay 29, 2009

I'm trying to fix a defunct processes bug. Basically the mud is leaving behind zombie child processes that should be cleaned up by a call to wait().

I traced the problem to the fork() that loads resolver, then realized that resolver is only *one function*. Why go through all the trouble of loading another process and creating a pipe when that function can be called directly?

       
Post is unread #2 Jun 25, 2009 10:51 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

I believe that it's called asynchronously, meaning that the MUD doesn't block on the address resolution. This is very desirable because somethings resolution takes a long time, and you don't want the whole MUD to stop. One way of doing things asynchronously is with threads, but it's a little easier in this case to do it with a separate process.
       
Post is unread #3 Jun 25, 2009 11:04 pm
Go to the top of the page
Go to the bottom of the page

dbna2
Sorcerer
GroupMembers
Posts600
JoinedDec 3, 2008

       
Post is unread #4 Jun 26, 2009 2:59 am
Go to the top of the page
Go to the bottom of the page

Hygelac
Fledgling
GroupMembers
Posts3
JoinedMay 29, 2009

Man that was fast. Thanks guys. :alien:
       
Pages:<< prev 1 next >>