[PATCH 2/4] upstart-bridge: don't bail on dummy terminals

Dimitri John Ledkov dimitri.ledkov at canonical.com
Tue May 6 03:58:52 PDT 2014


---
 src/upstart-bridge/plymouth-upstart-bridge.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/upstart-bridge/plymouth-upstart-bridge.c b/src/upstart-bridge/plymouth-upstart-bridge.c
index 7fe1f42..a92690d 100644
--- a/src/upstart-bridge/plymouth-upstart-bridge.c
+++ b/src/upstart-bridge/plymouth-upstart-bridge.c
@@ -307,7 +307,9 @@ main (int    argc,
   if (should_be_verbose && !ply_is_tracing ())
     ply_toggle_tracing ();
 
-  setupterm (NULL, STDOUT_FILENO, NULL);
+  /* Don't bail on dummy/hardcopy terminals */
+  int errret=0;
+  setupterm (NULL, STDOUT_FILENO, &errret);
 
   is_connected = ply_boot_client_connect (state.client,
                                           (ply_boot_client_disconnect_handler_t)
-- 
2.0.0.rc0



More information about the plymouth mailing list