|
...
|
...
|
@@ -1288,8 +1288,13 @@ function screen_service {
|
|
1288
|
1288
|
|
|
1289
|
1289
|
# sleep to allow bash to be ready to be send the command - we are
|
|
1290
|
1290
|
# creating a new window in screen and then sends characters, so if
|
|
1291
|
|
- # bash isn't running by the time we send the command, nothing happens
|
|
1292
|
|
- sleep 3
|
|
|
1291
|
+ # bash isn't running by the time we send the command, nothing
|
|
|
1292
|
+ # happens. This sleep was added originally to handle gate runs
|
|
|
1293
|
+ # where we needed this to be at least 3 seconds to pass
|
|
|
1294
|
+ # consistently on slow clouds. Now this is configurable so that we
|
|
|
1295
|
+ # can determine a reasonable value for the local case which should
|
|
|
1296
|
+ # be much smaller.
|
|
|
1297
|
+ sleep ${SCREEN_SLEEP:-3}
|
|
1293
|
1298
|
|
|
1294
|
1299
|
NL=`echo -ne '\015'`
|
|
1295
|
1300
|
# This fun command does the following:
|