OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: egw on February 08, 2005, 02:07:41 am

Title: Vi Problem
Post by: egw on February 08, 2005, 02:07:41 am
Hi,

I'm having an intermittent problem with vi (stock vi, stock c3000).  Sometimes I can open and edit a file, but other times, I get an error


    garbage() failed to read oldhdr??[More...]
    Trouble writing header to tmp file


and the file doesn't load.  If I quit and try to edit the file again, the error changes to


    <filename> is busy.


Anyone know what this is all about?

Thanks,
Eric
Title: Vi Problem
Post by: jfv on February 08, 2005, 09:54:54 am
I've had something similar happen. I've noticed in particular that this happens the Zaurus suspends while a vi session is open. I don't know what the cause is. Rebooting solves the  problem, but it would be nice to have a better solution. BTW this is on the C860. I've never had this problem with the 5000D.

Felipe
Title: Vi Problem
Post by: lardman on February 08, 2005, 10:58:38 am
Quote
If I quit and try to edit the file again, the error changes to


<filename> is busy.

If vi crashes, the lock-file it creates for the opened file (in /tmp I think) isn't removed, so it thinks the file is still open. To get rid of the message, delete the lock-file.

I've no idea what's causing the initial problem though.


Si