diff options
author | daniel <danieruru@gmail.com> | 2013-01-29 01:28:14 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-29 01:28:14 +0900 |
commit | 24ba66e6acd0d6603e1259fb2e0cd78dd6e54361 (patch) | |
tree | c81f7146eb159a7d408d8f0add9040b814357adf | |
parent | ee487e4a6e3f62fc24a030a3b9ed1d6a72c4c611 (diff) |
Actually lock the device if requested in the link creation.
-rw-r--r-- | vxi11_server.c | 4 |
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; |