Comparison of exit_status in run_custom_command is wrong
Bug #1339244 reported by
unrud
This bug affects 9 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Settings Daemon |
Fix Released
|
Medium
|
|||
gnome-settings-daemon (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Triaged
|
Medium
|
Unassigned | ||
unity-settings-daemon (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Trusty |
Triaged
|
Medium
|
Unassigned |
Bug Description
In file /plugins/
The documentation (https:/
exit_status return location for child exit status, as returned by waitpid(), or NULL.
And in the documentation of waitpid (http://
You have to do something like this:
if (WIFEXITED(
return FALSE;
}
return (WEXITSTATUS(
Related branches
lp://staging/~robert-ancell/unity-settings-daemon/check-exit-status
- Sebastien Bacher: Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 41 lines (+15/-4)1 file modifiedplugins/common/gsd-input-helper.c (+15/-4)
Changed in gnome-settings-daemon (Ubuntu): | |
status: | Triaged → In Progress |
Changed in gnome-settings-daemon (Ubuntu): | |
importance: | Undecided → Medium |
Changed in gnome-settings-daemon (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in unity-settings-daemon (Ubuntu Trusty): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in unity-settings-daemon (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in gnome-settings-daemon (Ubuntu Trusty): | |
status: | New → Triaged |
Changed in gnome-settings-daemon: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
To post a comment you must log in.
This is fixed upstream /git.gnome. org/browse/ gnome-settings- daemon/ commit/ ?id=2329da7dad2 8f61109cecd8ca8 ce93580f62f349
https:/