gcc 4.5 warning fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38687 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2011-05-10 15:03:49 +00:00
parent cdb1f9a000
commit 33f7c028a2

View File

@ -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);