msg00075.html
1998Q1/msg00075.html · 7.9 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: XQ Znjerapr <pynjNhaqre.Sat.Eha.QA[> -->
<!--X-Date: Wed, 07 Jan 1998 00:22:58 +0000 -->
<!--X-Message-Id: 199801070028.QAA03853#under,Eng.Sun.COM -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.SUN.3.96.980102103313.3548A-100000@sun38 -->
<!--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:claw#under,Eng.Sun.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="msg00072.html">Previous</a>
| <a href="msg00074.html">Next</a>
]
Thread:
[ <a href="msg00008.html">Previous</a>
| <a href="msg00084.html">Next</a>
]
Index:
[ <A HREF="author.html#00075">Author</A>
| <A HREF="#00075">Date</A>
| <A HREF="thread.html#00075">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>: JC Lawrence <<A HREF="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</A>></LI>
<LI><em>Date</em>: Tue, 06 Jan 1998 16:28:03 -0800</LI>
<LI><em>Reply-to</em>: <A HREF="mailto:claw#null,net">claw#null,net</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 Fri, 2 Jan 1998 11:12:08 PST8PDT
Shawn Halpenny<malachai#iname,com> wrote:
> On Thu, 1 Jan 1998 coder#ibm,net wrote:
>> A lurking and insidious problem here is that you don't detect when
>> mail delivery fails. This can be a bitch to a) notice when it
>> happens, and b) determine the cause when it does
>>
>> I'd suggest putting in a signal handler which triggers on the child
>> dieing, and then reports an appropriate response to the user if the
>> delivery failed. It's fairly trivial to do: you can use any of
>> your standard IPC calls to handle reporting the failure/success
>> code (I do it with threads instead of full processes via, so I do
>> the report back via the thread object for the mailer thread).
> 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.
--
J C Lawrence Internet: claw#null,net
Internet: coder#ibm,net
----------(*) Internet: jc.lawrence#sun,com
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...
</PRE>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00084" HREF="msg00084.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></strong>
<ul compact><li><em>From:</em> Shawn Halpenny <malachai#iname,com></li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00008" HREF="msg00008.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></STRONG>
<UL><LI><EM>From:</EM> Shawn Halpenny <malachai#iname,com></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00072.html">Re: [MUD-Dev] The impact of the web on muds</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00074.html">World Seeding (was Task Parsing)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00008.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00084.html">Re: [MUD-Dev] Mail from mud Zoran's final Imp</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00075"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00075"><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>Re: [MUD-Dev] The impact of the web on muds</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00281" HREF="msg00281.html">Re: [MUD-Dev] The impact of the web on muds</A></strong>,
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Thu 22 Jan 1998, 14:59 GMT
</LI>
</ul>
</ul>
</LI>
<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
</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>