[comp.unix.aix] locking a named pipe with fcntl

hbergh@oracle.nl (Herbert van den Bergh) (09/13/90)

I tried to lock a named pipe from a C program by calling
fcntl() with the F_SETLK command.
The fcntl() always returns -1 with errno set to EINVAL.
The same call, with the same parameters, does work on regular files.
I can't find anything in InfoExplorer that explains this.

Are locks on named pipes not supported?
How do I keep other processes from getting at them?

If you are interested in more details, I can mail you a small test
case to demonstrate this.

Thanks.
-- 
Herbert van den Bergh, ORACLE Europe	hbergh@oracle.nl, hbergh@oracle.com
Rijnzathe 6, NL-3454 PV De Meern	uunet!mcsun!orcenl!hbergh
Phone: +31-3406-94211