diff --git a/reference/dio/functions/dio-fcntl.xml b/reference/dio/functions/dio-fcntl.xml index a6c0555452..4977076928 100644 --- a/reference/dio/functions/dio-fcntl.xml +++ b/reference/dio/functions/dio-fcntl.xml @@ -1,5 +1,5 @@ - + @@ -101,7 +101,7 @@ $fd = dio_open('/dev/ttyS0', O_RDWR); -if (dio_fcntl($fd, F_SETLK) == -1) { +if (dio_fcntl($fd, F_SETLK, Array("type"=>F_WRLCK)) == -1) { // the file descriptor appears locked echo "The lock can not be cleared. It is held by someone else."; } else {