mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 05:28:03 +02:00
Fix a race in the auth test where client prevents server from being master.
This commit is contained in:
parent
36120264ca
commit
e7523d3379
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue