From 33f7c028a2df25a6bd69a50adeb85d59c1fc4fea Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 10 May 2011 15:03:49 +0000 Subject: [PATCH] gcc 4.5 warning fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38687 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Server.cpp b/src/Server.cpp index b6ae8d8b1f..fed89ace5b 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -1015,7 +1015,8 @@ bool LyXComm::loadFilesInOtherInstance() break; string const cmd = "LYXCMD:pipe:file-open:" + fname.absFileName() + '\n'; - ::write(pipefd, cmd.c_str(), cmd.length()); + if (::write(pipefd, cmd.c_str(), cmd.length()) < 0) + LYXERR0("Cannot write to pipe!"); ::close(pipefd); ++loaded_files; it = theFilesToLoad().erase(it);