[vpn-devel] 2.2.0 iked exits immediately return code 255

Matthew Grooms mgrooms at shrew.net
Thu Apr 25 23:25:15 CDT 2013


On 4/25/2013 3:17 AM, Marcel Wysocki wrote:
> btw its the rpm i built. build log and everything can be accessed here
>
> http://koji.fedoraproject.org/koji/buildinfo?buildID=414088
>

I introduced a bug in my last commit before the release. The issue you 
are seeing manifests itself a pid file path is not specified as an arg 
on the command line. I have committed a fix to head and the 2.2 branch. 
If you would like to apply a patch manually, here it is.

-Matthew

-------------- next part --------------
Index: source/iked/main.cpp
===================================================================
--- source/iked/main.cpp	(revision 879)
+++ source/iked/main.cpp	(working copy)
@@ -544,8 +544,9 @@
 	// create our pid file
 	//
 
-	if( !daemon_pidfile_create( path_pid ) )
-		return -1;
+	if( path_pid[ 0 ] )
+		if( !daemon_pidfile_create( path_pid ) )
+			return -1;
 
 	//
 	// run daemon main loop
@@ -557,7 +558,8 @@
 	// remove our pidfile
 	//
 
-	daemon_pidfile_remove( path_pid );
+	if( path_pid[ 0 ] )
+		daemon_pidfile_remove( path_pid );
 
 #endif
 


More information about the vpn-devel mailing list