msg00084.html
1998Q1/msg00084.html · 7.5 KB
From the archive 1998Q1.zip
Download the archive « Back to the archive contents
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD-Dev] Mail from mud Zoran's final Imp -->
<!--X-From-R13: Eunja Vnycraal <znynpunvNvanzr.pbz> -->
<!--X-Date: Wed, 07 Jan 1998 14:50:00 +0000 -->
<!--X-Message-Id: Pine.SUN.3.96.980107094154.4459A-100000@sun38 -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199801070028.QAA03853#under,Eng.Sun.COM -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Mail from mud Zoran's final Imp</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:malachai#iname,com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">
<font size="+4" color="#804040">
<strong><em>MUD-Dev<br>mailing list archive</em></strong>
</font>
<br>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
Date:
[ <a href="msg00083.html">Previous</a>
| <a href="msg00085.html">Next</a>
]
Thread:
[ <a href="msg00075.html">Previous</a>
| <a href="msg00002.html">Next</a>
]
Index:
[ <A HREF="author.html#00084">Author</A>
| <A HREF="#00084">Date</A>
| <A HREF="thread.html#00084">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Mail from mud Zoran's final Imp</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Mail from mud Zoran's final Imp </LI>
<LI><em>From</em>: Shawn Halpenny <<A HREF="mailto:malachai#iname,com">malachai#iname,com</A>></LI>
<LI><em>Date</em>: Wed, 7 Jan 1998 09:49:51 -0500 (EST)</LI>
<LI><em>Reply-To</em>: Shawn Halpenny <<A HREF="mailto:malachai#iname,com">malachai#iname,com</A>></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Tue, 6 Jan 1998, JC Lawrence wrote:
> On Fri, 2 Jan 1998 11:12:08 PST8PDT
> Shawn Halpenny<malachai#iname,com> wrote:
>
> > On Thu, 1 Jan 1998 coder#ibm,net wrote:
>
> >> [ catch SIGCHLD from the spawned mailing process to snag errors ]
>
> > Isn't it easier to check the return value from system(), since the
> > wait() call inside system() is already waiting for the child to
> > exit? Checking whether it exited successfully, failed because of
> > something user-controllable, or died on some nasty signal is where
> > the WIFxxxx macros come in handy (see /usr/include/sys/wait.h).
> > Since you're using system() instead of doing the fork() and exec()
> > yourself, remember that there can be a difference in the returned
> > status if it was the shell that was abnormally terminated instead of
> > the command process.
>
> Bugger, I forgot the WIF* macros.
>
> Note: You're going to need to do either a fork()/system()/exit() or a
> fork()/exec()/exit(), and it really doesn't matter which except that
> the latter is cheaper on page space. Either way you need the fork
> such that the main process doesn't have to wait for the child.
Certainly. In a similar vein, what about having a completely separate
daemon (a separate, standalone process, associated with the MUD only by its
method of communication--it was never a child process of the MUD)
who reads a socket (or FIFO, etc.) for commands to be executed and in
similar fashion reports back the results. No forking necessary in the MUD at
all for this to work, and the daemon can be quite compact (all it must do
is fork()/exec()/exit() with the command given to it over the comm
channel). If executing system commands is something that one must do
fairly often, would this be a more efficient approach?
--
Shawn
</PRE>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00075" HREF="msg00075.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></STRONG>
<UL><LI><EM>From:</EM> JC Lawrence <claw#under,Eng.Sun.COM></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00083.html">Re: Journal of MUD Research, Vol. 3, No. 1 [TEXT]</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00085.html">Re: [MUD-Dev] Mail from mud Update :)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00075.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00002.html">Re: [MUD-Dev] Wild west (was Guilds & Politics)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00084"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00084"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><strong><A NAME="00003" HREF="msg00003.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></strong>,
Stephen Zepp <a href="mailto:zoran#enid,com">zoran#enid,com</a>, Thu 01 Jan 1998, 19:51 GMT
<UL>
<LI><strong><A NAME="00007" HREF="msg00007.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></strong>,
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Fri 02 Jan 1998, 00:44 GMT
<UL>
<LI><strong><A NAME="00008" HREF="msg00008.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></strong>,
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Fri 02 Jan 1998, 16:05 GMT
<UL>
<LI><strong><A NAME="00075" HREF="msg00075.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></strong>,
JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Wed 07 Jan 1998, 00:22 GMT
<UL>
<LI><strong><A NAME="00084" HREF="msg00084.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></strong>,
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Wed 07 Jan 1998, 14:50 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00002" HREF="msg00002.html">Re: [MUD-Dev] Wild west (was Guilds & Politics)</A></strong>,
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Thu 01 Jan 1998, 18:42 GMT
<UL>
<li><Possible follow-up(s)><br>
<LI><strong><A NAME="00009" HREF="msg00009.html">Re: [MUD-Dev] Wild west (was Guilds & Politics)</A></strong>,
Mike Sellers <a href="mailto:mike#online-alchemy,com">mike#online-alchemy,com</a>, Fri 02 Jan 1998, 21:20 GMT
<UL>
<LI><strong><A NAME="00038" HREF="msg00038.html">Re: [MUD-Dev] Wild west (was Guilds & Politics)</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Mon 05 Jan 1998, 22:58 GMT
<UL>
<LI><strong><A NAME="00082" HREF="msg00082.html">Re: [MUD-Dev] Wild west (was Guilds & Politics)</A></strong>,
JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Wed 07 Jan 1998, 01:16 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>
</ul>
<hr>
<center>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
</center>
<hr>
</body>
</html>