diff rvinterf/etmsync/launchrvif.c @ 276:909f00c15f27

more fc-fsio foundation
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 23 Feb 2014 21:31:30 +0000
parents cedf09b6b5ac
children
line wrap: on
line diff
--- a/rvinterf/etmsync/launchrvif.c	Sun Feb 23 20:27:15 2014 +0000
+++ b/rvinterf/etmsync/launchrvif.c	Sun Feb 23 21:31:30 2014 +0000
@@ -8,6 +8,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include "exitcodes.h"
 
 static char rvinterf_pathname[] = "/usr/local/bin/rvinterf";
 
@@ -23,7 +24,7 @@
 	rc = socketpair(AF_UNIX, SOCK_STREAM, 0, sp);
 	if (rc < 0) {
 		perror("socketpair");
-		exit(1);
+		exit(ERROR_UNIX);
 	}
 	sock = sp[0];
 	sprintf(Sarg, "-S%d", sp[1]);
@@ -48,7 +49,7 @@
 	rc = vfork();
 	if (rc < 0) {
 		perror("vfork for launching rvinterf");
-		exit(1);
+		exit(ERROR_UNIX);
 	}
 	if (!rc) {
 		/* we are in the child - do the exec */