Fix a race in the auth test where client prevents server from being master.

This commit is contained in:
Robert Noland 2007-10-17 13:20:46 -07:00 committed by Eric Anholt
parent 36120264ca
commit e7523d3379

View file

@ -69,10 +69,10 @@ static void client()
int drmfd, ret;
/* XXX: Should make sure we open the same DRM as the master */
drmfd = drm_open_any();
wait_event(0, SERVER_READY);
drmfd = drm_open_any();
/* Get a client magic number and pass it to the master for auth. */
auth.magic = 0; /* Quiet valgrind */
ret = ioctl(drmfd, DRM_IOCTL_GET_MAGIC, &auth);