Hi Martin
On Fri, 2002-10-18 at 06:35, Martin Wickman wrote:
> I have been trying to get fam to work with the monitor.c program from
> the tutorial. monitor.c compiles just fine (I had to change
> FAMCONNECTION_GETfd to FAMCONNECTION_GETFD -- typo?).
>
> My problem:
>
> I get 'permission denied' if running as a normal user, or 'address
> already in use' if running as root.
[...]
> $ ./monitor monitor.c
> FAMMonitor failed: Permission denied
> Nothing monitored.
>
> As root
>
> # ./monitor monitor.c
> FAMMonitor failed: Address already in use
> Nothing monitored.
>
> ls -l /tmp/.fam_socket
> srwx------ 1 root nobody 0 Oct 17 22:30 /tmp/.fam_socket
Most of your output (including what looks like RPC errors) matches my
output, yet monitor.c from the Using FAM section of the IRIX Desktop
Integration Guide (I assume this is the tutorial you are referring to)
works for me. (I assume your "fam -C -d" output and your "strace
./monitor" output were from different attempts, because the socket file
name (e.g. /tmp/.famXYZabc) should match.)
The only way I was able to reproduce your output was when the file I was
trying to monitor (such as monitor.c in "./monitor monitor.c") had no
read permissions. Have you tried monitoring other files or changing the
permissions on the file you are monitoring?
What happens when monitor is executed as root does look like a bug at
this point, but I've not looked into it yet.
Thanks
--
MICHAEL WARDLE
SGI Applications Team
Adacel Technologies
|