From 24ba66e6acd0d6603e1259fb2e0cd78dd6e54361 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 29 Jan 2013 01:28:14 +0900 Subject: Actually lock the device if requested in the link creation. --- vxi11_server.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vxi11_server.c') diff --git a/vxi11_server.c b/vxi11_server.c index 8811514..f5204e5 100644 --- a/vxi11_server.c +++ b/vxi11_server.c @@ -223,6 +223,10 @@ create_link_1_svc(Create_LinkParms *argp, struct svc_req *rqstp) { result.maxRecvSize = MAXRECV; result.lid = linkid; + if (argp->lockDevice) { + lock(link->lid); + } + } } return &result; -- cgit