diff rvinterf/lowlevel/rvifmain.c @ 187:f5f8776f7c66

rvinterf: added -s option for changing the local socket pathname
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 24 Nov 2013 23:25:59 +0000
parents ebfa9657d03d
children cf8583923dc4
line wrap: on
line diff
--- a/rvinterf/lowlevel/rvifmain.c	Sun Nov 24 23:18:30 2013 +0000
+++ b/rvinterf/lowlevel/rvifmain.c	Sun Nov 24 23:25:59 2013 +0000
@@ -27,6 +27,8 @@
 int background;
 int max_fd;
 
+char *socket_pathname = "/tmp/rvinterf_socket";
+
 main(argc, argv)
 	char **argv;
 {
@@ -36,7 +38,7 @@
 	fd_set fds;
 	struct client *cli, **clip;
 
-	while ((c = getopt(argc, argv, "bB:d:l:")) != EOF)
+	while ((c = getopt(argc, argv, "bB:d:l:s:")) != EOF)
 		switch (c) {
 		case 'b':
 			background++;
@@ -50,6 +52,9 @@
 		case 'l':
 			logfname = optarg;
 			continue;
+		case 's':
+			socket_pathname = optarg;
+			continue;
 		case '?':
 		default:
 usage:			fprintf(stderr,