From: Angus Leeming Date: Thu, 3 Feb 2005 14:55:33 +0000 (+0000) Subject: Use our wrapper for the posix kill() function. X-Git-Tag: 1.6.10~14579 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dc9f6d57d960a4404e347d67bd8d97ea15d9bedd;p=features.git Use our wrapper for the posix kill() function. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9580 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/ChangeLog b/src/support/ChangeLog index fb71ade2aa..ff0ae18346 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,8 @@ +2005-02-03 Angus Leeming + + * forkedcall.C (running): call the lyx::kill wrapper function + rather than the system kill. + 2005-02-02 Angus Leeming * forkedcall.C (generateChild): overhaul the code to split a string diff --git a/src/support/forkedcall.C b/src/support/forkedcall.C index 5fb660e761..9f416959e7 100644 --- a/src/support/forkedcall.C +++ b/src/support/forkedcall.C @@ -158,7 +158,7 @@ bool ForkedProcess::running() const waitpid(pid(), &waitstatus, WNOHANG); // Racy of course, but it will do. - if (::kill(pid(), 0) && errno == ESRCH) + if (lyx::support::kill(pid(), 0) && errno == ESRCH) return false; return true; }