Chipping away at Ruurd's patches again, I see that we should be using our
wrapper for the posix kill() function.
I'll commit these as they're trvial.
--
Angus
Index: src/support/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/ChangeLog,v
retrieving revision 1.149.2.35
diff -u -p -r1.149.2.35 ChangeLog
--- src/support/ChangeLog 2 Feb 2005 12:58:06 -0000 1.149.2.35
+++ src/support/ChangeLog 3 Feb 2005 14:48:31 -0000
@@ -1,3 +1,8 @@
+2005-02-03 Angus Leeming <[EMAIL PROTECTED]>
+
+ * forkedcall.C (running): call the lyx::kill wrapper function
+ rather than the system kill.
+
2005-01-20 Angus Leeming <[EMAIL PROTECTED]>
* filetools.[Ch] (LibScriptSearch): backport the 1.4.x code so
Index: src/support/forkedcall.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/forkedcall.C,v
retrieving revision 1.11.2.4
diff -u -p -r1.11.2.4 forkedcall.C
--- src/support/forkedcall.C 2 Feb 2005 12:58:07 -0000 1.11.2.4
+++ src/support/forkedcall.C 3 Feb 2005 14:48:31 -0000
@@ -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;
}
Index: src/support/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/ChangeLog,v
retrieving revision 1.323
diff -u -p -r1.323 ChangeLog
--- src/support/ChangeLog 2 Feb 2005 12:57:20 -0000 1.323
+++ src/support/ChangeLog 3 Feb 2005 14:48:59 -0000
@@ -1,3 +1,8 @@
+2005-02-03 Angus Leeming <[EMAIL PROTECTED]>
+
+ * forkedcall.C (running): call the lyx::kill wrapper function
+ rather than the system kill.
+
2005-02-02 Angus Leeming <[EMAIL PROTECTED]>
* forkedcall.C (generateChild): overhaul the code to split a string
Index: src/support/forkedcall.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/forkedcall.C,v
retrieving revision 1.22
diff -u -p -r1.22 forkedcall.C
--- src/support/forkedcall.C 2 Feb 2005 12:57:20 -0000 1.22
+++ src/support/forkedcall.C 3 Feb 2005 14:48:59 -0000
@@ -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;
}