[PATCH] os: print newline after printing display name

Peter Hutterer peter.hutterer at who-t.net
Wed Jun 20 21:38:31 PDT 2012


Much easier for scripts that try to read the display value off the file
descriptor. Plus, this restores the behaviour we had for this patch in
Fedora since server 1.6 (April 2009).

https://bugzilla.redhat.com/show_bug.cgi?id=824594

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 os/connection.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/os/connection.c b/os/connection.c
index 039942f..5144d16 100644
--- a/os/connection.c
+++ b/os/connection.c
@@ -423,7 +423,7 @@ CreateWellKnownSockets(void)
         }
         if (!found)
             FatalError("Failed to find a socket to listen on");
-        snprintf(dynamic_display, sizeof(dynamic_display), "%d", i);
+        snprintf(dynamic_display, sizeof(dynamic_display), "%d\n", i);
         display = dynamic_display;
     }
 
-- 
1.7.10.2



More information about the xorg-devel mailing list