I insert following line before first fcntl call
lock_info.l_type = F_UNLCK

but same error message print out.

I reedit the code like this
...
memset (&lock_info, 0, sizeof (lock_info));
while (1)
  {
...

Now no error message is print out.
I guess lock_info struct must be clear(all member) before call fcntl() function
or lock_info get garbage value that is not proper to call fcntl().

Why function fcntl so sensitive?

--
=========================================================
ChungKil Kim
DP Lab. Dept. of Computer Science Chungnam National Univ.
Taejeon, KOREA
e-mail: [EMAIL PROTECTED]
tel.  : +82-42-821-7443
=========================================================


Reply via email to