9f1ab47b76d469d6abf2ac540d89fa295815dc78
[AGL/meta-agl.git] / meta-agl-profile-graphical / recipes-graphics / wayland / wayland-ivi-extension / 0002-add-LayerManagerControl-error-status.patch
1 LayerManagerControl: add error exit status
2
3 Tweak to add a non-zero exit status on errors.  This is useful for
4 scripting, and allows writing a simple loop to detect Weston readiness.
5
6 Upstream-Status: Pending
7
8 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
9
10 diff --git a/ivi-layermanagement-examples/LayerManagerControl/src/main.cpp b/ivi-layermanagement-examples/LayerManagerControl/src/main.cpp
11 index 8ee0546..210e21e 100644
12 --- a/ivi-layermanagement-examples/LayerManagerControl/src/main.cpp
13 +++ b/ivi-layermanagement-examples/LayerManagerControl/src/main.cpp
14 @@ -45,6 +45,7 @@ int main(int argc, char* argv[])
15      if (CommandSuccess != interpreter.interpretCommand(userCommand))
16      {
17          cerr << "Interpreter error: " << interpreter.getLastError() << endl;
18 +        return 1;
19      }
20  
21      return 0;