> Fixed (14786), with the following code copied from trunk.
It's not fixed completely. Now it crashes in lyx_gui.C line 98.
No idea now. The follow patch will sync lyxsocket.C with the trunk,
but it should not matter. Can you try? (Just copy lyxsocket.C from
trunk to branch).
You can see that I am basically comparing code between 1.4.x and 1.5.x.
Bo
Index: src/lyxsocket.C
===================================================================
--- src/lyxsocket.C (revision 14786)
+++ src/lyxsocket.C (working copy)
@@ -205,7 +205,9 @@
LyXDataSocket::~LyXDataSocket()
{
- ::close(fd_);
+ if (::close(fd_) != 0)
+ lyxerr << "lyx: Data socket " << fd_
+ << " IO error on closing: " << strerror(errno);
lyx_gui::unregister_socket_callback(fd_);
lyxerr[Debug::LYXSERVER] << "lyx: Data socket " << fd_ << " quitting."
@@ -223,7 +225,7 @@
bool LyXDataSocket::readln(string & line)
{
int const charbuf_size = 100;
- char charbuf[charbuf_size]; // buffer for the ::read() system call
+ char charbuf[charbuf_size]; // buffer for the ::read() system call
int count;
// read and store characters in buffer