Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2017 20:42:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 223132] /etc/rc.d/sendmail status returns the wrong exit code
Message-ID:  <bug-223132-8-WiObudBLbC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223132-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223132-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223132

Jilles Tjoelker <jilles@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles@FreeBSD.org
             Status|New                         |Open

--- Comment #2 from Jilles Tjoelker <jilles@FreeBSD.org> ---
The idea seems good but adding exit statuses does not seem appropriate. I
suggest the maximum instead: exit $(( _ret > $? ? _ret : $? ))

The semicolon after exit is unnecessary and the style is to leave it off.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223132-8-WiObudBLbC>