| To: | fam@xxxxxxxxxxx |
|---|---|
| Subject: | Re: Problem using fam in linux redhat (monitor.c) |
| From: | Dirk Habighorst <ml-linux-fam@xxxxxxxxxxxxxxx> |
| Date: | Wed, 23 Oct 2002 15:48:16 +0200 |
| Organization: | Epigenomics AG |
| References: | <3DAF1F0E.4010808@xxxxxxxxxxx> <1034915858.18272.28.camel@zeus> |
| Reply-to: | Dirk Habighorst <dirk.habighorst@xxxxxxxxxxxxxxx> |
| Sender: | fam-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020826 |
Michael Wardle wrote: 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_socketMost 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? I do get the same error Martin gets when using relative pathnames. The IRIX Desktop Integration Guide mentions not to use relative pathnames. Now I am wondering how you succeeded with it. 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 ciao dirk -- Dirk Habighorst e-mail:dirk@xxxxxxxxxxxxxx Epigenomics AG Tel.: +49-30-24345-372 Kleine Präsidentenstrasse 1 10178 Berlin |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | End of file creation or modification, Dirk Habighorst |
|---|---|
| Next by Date: | FAM notify on "file closed after modification" ???, Mattias Brunschen |
| Previous by Thread: | Re: Problem using fam in linux redhat (monitor.c), Martin Wickman |
| Next by Thread: | End of file creation or modification, Dirk Habighorst |
| Indexes: | [Date] [Thread] [Top] [All Lists] |