Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
systemd.4328
0003-bootchart-it-s-not-OK-to-return-1-from-a-m...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-bootchart-it-s-not-OK-to-return-1-from-a-main-progra.patch of Package systemd.4328
From 4155f7d4be5053d5f34a26e5437fd85e1fe00fa3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering <lennart@poettering.net> Date: Mon, 11 Aug 2014 18:23:47 +0200 Subject: [PATCH] bootchart: it's not OK to return -1 from a main program --- src/bootchart/bootchart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git src/bootchart/bootchart.c src/bootchart/bootchart.c index c0e176d..8ef5ad1 100644 --- src/bootchart/bootchart.c +++ src/bootchart/bootchart.c @@ -380,8 +380,8 @@ int main(int argc, char *argv[]) { sampledata = new0(struct list_sample_data, 1); if (sampledata == NULL) { - log_error("Failed to allocate memory for a node: %m"); - return -1; + log_oom(); + return EXIT_FAILURE; } sampledata->sampletime = gettime_ns(); -- 1.7.9.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor