🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.v7
Article #83

uux exit status ignored in mail

#83
From: utzoohenry
Date: Mon, 12 Jul 1982 22:06
14 lines
833 bytes
mail(1) ignores the exit status of a uux spawned off to send remote
mail.  The result is that even when the mail is immediately recognized
as unsendable (e.g. first site in the path is unknown), no dead.letter
file results.  The following change to the last two lines of sendrmt()
cures this:

	< 	pclose(rmf);
	< 	exit(0);
	---
	> 	sts = pclose(rmf);
	> 	exit((sts == 0) ? 0 : 1);

The explicit conditional is needed because exit() ignores the high byte
of its argument, which is where a non-zero status normally appears.
Technical Details
Message-ID: <bnews.utzoo.2277>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!henry
Newsgroups: net.bugs.v7
Title: uux exit status ignored in mail 
Article-I.D.: utzoo.2277
Posted: Mon Jul 12 22:06:08 1982
Received: Mon Jul 12 22:06:08 1982
Subject: uux exit status ignored in mail
Date: Mon, 12 Jul 1982 22:06:08 +0000
Message-ID: <bnews.utzoo.2277>