Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
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
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot, Yandex

Members: 0
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » 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, 7: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, 8: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, 9:04 pm
Go to the top of the page
Go to the bottom of the page

dbna2
Sorcerer
GroupMembers
Posts600
JoinedDec 2, 2008

       
Post is unread #4 Jun 26, 2009, 12: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 >>