[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/cman/cman_tool join.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield sourceware org	2007-02-19 13:10:25

Modified files:
	cman/cman_tool : join.c 

Log message:
	If exec fails, then tell the parent process.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/join.c.diff?cvsroot=cluster&r1=1.49&r2=1.50

--- cluster/cman/cman_tool/join.c	2007/02/14 09:37:52	1.49
+++ cluster/cman/cman_tool/join.c	2007/02/19 13:10:24	1.50
@@ -139,7 +139,11 @@
 		be_daemon(!comline->verbose);
 		chdir(SBINDIR);
 		execve("./aisexec", argv, envp);
-		die("execve of " SBINDIR "/aisexec failed: %s", strerror(errno));
+
+		// exec failed - tell the parent process */
+		sprintf(scratch, "execve of " SBINDIR "/aisexec failed: %s", strerror(errno));
+		write(p[1], scratch, strlen(scratch));
+		exit(1);
 		break;
 
 	default: //parent


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]