Bug 85171 - Incorrect error returned when exec fails when spawning
Summary: Incorrect error returned when exec fails when spawning
Status: RESOLVED DUPLICATE of bug 24821
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: D-Bus Maintainers
QA Contact: D-Bus Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-18 12:17 UTC by Ross Lagerwall
Modified: 2014-10-21 19:20 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch (1.05 KB, patch)
2014-10-18 12:17 UTC, Ross Lagerwall
Details | Splinter Review

Description Ross Lagerwall 2014-10-18 12:17:46 UTC
Created attachment 108027 [details] [review]
patch

Explained in the commit message...

commit c87d1bc0dc449ace9c0e178f43586ebffeeb33f5
Author: Ross Lagerwall <rosslagerwall@gmail.com>
Date:   Sat Oct 18 13:13:00 2014 +0100

    Return exec errors correctly when spawning
    
    If an error happens when calling exec(), don't let the real errnum be
    overwritten by the babysitter's CHILD_EXIT status.
    
    Before, an exec error would show something like:
    Failed to execute program org.rossl.test: Success
    
    After:
    Failed to execute program org.rossl.test: No such file or directory
Comment 1 Simon McVittie 2014-10-20 10:40:14 UTC
I think this is the same bug for which I have a patch waiting for review on Bug #24821. Does that patch work for you? Does it look sensible?
Comment 2 Ross Lagerwall 2014-10-21 19:20:16 UTC
Yeah, your patch works for me. Both patches look sensible and similar enough.

*** This bug has been marked as a duplicate of bug 24821 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.