This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/13537] New: standardize error code handling
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 21 Dec 2011 19:41:16 +0000
- Subject: [Bug runtime/13537] New: standardize error code handling
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13537
Bug #: 13537
Summary: standardize error code handling
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
AssignedTo: systemtap@sourceware.org
ReportedBy: fche@redhat.com
Classification: Unclassified
staprun and friends have a lot of functions that return 0 for ok
and -1 (and sometimes a few other codes) for errors. This loses errno
values, and doesn't let callers discriminate between problems properly.
These should be standardized to return 0 for ok and -errno, basically
as per the kernel.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.