Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!hp4nl!orcenl!hbergh From: hbergh@oracle.nl (Herbert van den Bergh) Newsgroups: comp.unix.aix Subject: locking a named pipe with fcntl( ,F_SETLK, ) doesn't work Keywords: fcntl lock named pipe Message-ID: <953@nlsun1.oracle.nl> Date: 12 Sep 90 21:42:14 GMT Organization: Oracle Europe, The Netherlands Lines: 17 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