Revision: 1866
http://sourceforge.net/p/r-gregmisc/code/1866
Author: warnes
Date: 2014-07-22 15:07:11 +0000 (Tue, 22 Jul 2014)
Log Message:
-----------
Modify C function Rfork_signal to avoid issue with declared type of argument to signal function between Linux and Solaris.
Modified Paths:
--------------
trunk/fork/src/fork.c
Modified: trunk/fork/src/fork.c
===================================================================
--- trunk/fork/src/fork.c 2014-07-21 16:47:15 UTC (rev 1865)
+++ trunk/fork/src/fork.c 2014-07-22 15:07:11 UTC (rev 1866)
@@ -268,13 +268,11 @@
void Rfork_signal(int *sig, int *action)
{
- sig_t func;
-
if(*action==0)
- func = SIG_IGN;
+ signal( *sig, SIG_IGN );
else
- func = SIG_DFL;
+ signal( *sig, SIG_DFL );
- signal( *sig, func );
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|