Author Topic: Vi Problem  (Read 2415 times)

egw

  • Newbie
  • *
  • Posts: 17
    • View Profile
Vi Problem
« 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

jfv

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
Vi Problem
« Reply #1 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
SL 5000 D  and C860 Sharp ROM
Too many accessories...

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Vi Problem
« Reply #2 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva