From 2df7de86202606e19597c97c769e476a6d3ceca6 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Thu, 3 Feb 2005 14:56:11 +0000 Subject: [PATCH] Use our wrapper for the posix kill() function. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9581 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 5 +++++ src/support/forkedcall.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 315a310736..cae26d10ef 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-01-20 Angus Leeming * filetools.[Ch] (LibScriptSearch): backport the 1.4.x code so diff --git a/src/support/forkedcall.C b/src/support/forkedcall.C index eff8182530..39063f02a5 100644 --- a/src/support/forkedcall.C +++ b/src/support/forkedcall.C @@ -159,7 +159,7 @@ bool ForkedProcess::running() const waitpid(pid(), &waitstatus, WNOHANG); // Racy of course, but it will do. - if (::kill(pid(), 0) && errno == ESRCH) + if (lyx::kill(pid(), 0) && errno == ESRCH) return false; return true; }