summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-29 01:28:14 +0900
committerdaniel <danieruru@gmail.com>2013-01-29 01:28:14 +0900
commit24ba66e6acd0d6603e1259fb2e0cd78dd6e54361 (patch)
treec81f7146eb159a7d408d8f0add9040b814357adf
parentee487e4a6e3f62fc24a030a3b9ed1d6a72c4c611 (diff)
Actually lock the device if requested in the link creation.
-rw-r--r--vxi11_server.c4
1 files changed, 4 insertions, 0 deletions
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;