[Devel] [ openser-Bugs-1682036 ] Check return codes everywhere
SourceForge.net
noreply at sourceforge.net
Fri Mar 16 13:18:01 CET 2007
Bugs item #1682036, was opened at 2007-03-16 12:55
Message generated for change (Comment added) made by elfring
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1682036&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Markus Elfring (elfring)
>Assigned to: Elena-Ramona Modroiu (anomarme)
Summary: Check return codes everywhere
Initial Comment:
Some checks for return codes are missing.
Examples:
Would you like to add more error handling for return values from "fprintf" like in the function "daemonize" and from "close" in the function "init_unixsock_children"?
http://openser.svn.sourceforge.net/viewvc/openser/trunk/daemonize.c?revision=1782&view=markup
http://openser.svn.sourceforge.net/viewvc/openser/trunk/unixsock_server.c?revision=1782&view=markup
How do you think about to improve your software quality with exception handling?
http://dietmar-kuehl.de/mirror/c++-faq/exceptions.html#faq-17.1
http://cexcept.sourceforge.net/
----------------------------------------------------------------------
>Comment By: Markus Elfring (elfring)
Date: 2007-03-16 13:18
Message:
Logged In: YES
user_id=572001
Originator: YES
Would you like to detect every error situation as early as possible?
----------------------------------------------------------------------
Comment By: Henning Westerholt (henningw)
Date: 2007-03-16 13:14
Message:
Logged In: YES
user_id=337916
Originator: NO
Better error handling is allways good, but i don't think we
would gain much if you implement it for the function you mentioned.
Exception are good (if you use e.g. C++), and i miss them honestly. But
for C this is another case. The project you mentioned is IMHO
really unmaintained, the last update was in 2000.. And i don't know any
other well known C project that uses such a mechanism.
I think it is better to ask such general questions at the devel
mailinglist.
Henning
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1682036&group_id=139143
More information about the Devel
mailing list