|
...
|
...
|
@@ -1256,8 +1256,13 @@ function screen_process {
|
|
1256
|
1256
|
|
|
1257
|
1257
|
# sleep to allow bash to be ready to be send the command - we are
|
|
1258
|
1258
|
# creating a new window in screen and then sends characters, so if
|
|
1259
|
|
- # bash isn't running by the time we send the command, nothing happens
|
|
1260
|
|
- sleep 3
|
|
|
1259
|
+ # bash isn't running by the time we send the command, nothing
|
|
|
1260
|
+ # happens. This sleep was added originally to handle gate runs
|
|
|
1261
|
+ # where we needed this to be at least 3 seconds to pass
|
|
|
1262
|
+ # consistently on slow clouds. Now this is configurable so that we
|
|
|
1263
|
+ # can determine a reasonable value for the local case which should
|
|
|
1264
|
+ # be much smaller.
|
|
|
1265
|
+ sleep ${SCREEN_SLEEP:-3}
|
|
1261
|
1266
|
|
|
1262
|
1267
|
NL=`echo -ne '\015'`
|
|
1263
|
1268
|
# This fun command does the following:
|