Fix a race condition between autotestd and autotestd_monitor. If for
some reason the monitor starts up faster than autotestd, it can grab
the exit_code file before it exists (or theoretically it could lock it
after autotestd creates it but before it locks it).

To resolve this, have autotestd touch a "started" file after it creates
and locks the exit_code file, and have autotestd_monitor perform a
thirty second wait for it to exist before going ahead and trying to
grab the log files. In practice a wait of a couple of seconds is
sufficient to avoid the race.

Risk: Low
Visibility: Fixes a race condition between autotestd and
autotestd_monitor during client startup.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2816 592f7852-d20e-0410-864c-8624ca9c26a4
2 files changed