aboutsummaryrefslogtreecommitdiffstats
path: root/xenscreen.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2006-07-03 15:16:32 +0000
committerkraxel <kraxel>2006-07-03 15:16:32 +0000
commit3fe28de72374f2e37b5da0a655008c8cfec49198 (patch)
tree4c09b62550920bd016a40ae5a435070e038d774e /xenscreen.c
parentd2c0ed09f2ccbd1d0a2d2874ce6cf8fc1a21c1cf (diff)
downloadxenwatch-3fe28de72374f2e37b5da0a655008c8cfec49198.tar.gz
fix config race
Diffstat (limited to 'xenscreen.c')
-rw-r--r--xenscreen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xenscreen.c b/xenscreen.c
index 3420d8c..e0a67d6 100644
--- a/xenscreen.c
+++ b/xenscreen.c
@@ -171,10 +171,15 @@ int main(int argc, char *argv[])
} else if (0 != access(screenrc, R_OK)) {
/* no screenrc: minimum setup (status line only) */
- rc = run_application(1, "screen", "screen",
+ for (i = 0; i < 3; i++) {
+ rc = run_application(1, "screen", "screen",
"-X", "-S", screen_session,
"sorendition", "=s", "wb",
NULL);
+ if (0 == rc)
+ break;
+ sleep(1);
+ }
rc = run_application(1, "screen", "screen",
"-X", "-S", screen_session,
"hardstatus", "lastline",