[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: Cannot update timestamp on /var/spool/news/interesting.groups/...: Operation not permitted

David Aldred <nr@xxxxxxxxxxxxxxxxxxx> writes:

> On Sunday 20 Nov 2005 16:11, Niels Baggesen wrote:
>> On Sun, Nov 20, 2005 at 02:45:48PM +0000, David Aldred wrote:
>> > Is there any way I can take the part of the leafnode code that tries to
>> > do the update, compile it, and run it 'out of context' to see if the same
>> > problem arises?
>> You could attach a debugger or strace to the leafnode process that
>> services your news reader to see what is going on.
> (Long delay - sorry - had a burglary).

Sorry to hear that.

> I'm not at all clear how to do that!
> Leafnode is running as an xinetd service - how do I find out what to attach 
> strace to?

You'd connect your newsreader and after that run "ps ax | grep leafnode"
(Linux and BSD-style systems) or "ps -ef | grep leafnode" (SysV style
systems) and use the number from the PID column (run ps ax without grep
to see which column it is) to pass to "strace -p".

If that doesn't do the failing operation, you'll use the same ps command
but grep for xinetd and attach:

strace -f -p 12345    (12345 is xinetd's PID here)

and then connect the newsreader after you've started strace.

Matthias Andree
leafnode-list mailing list