Subversion Repositories MLServ

Rev

Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 10
Line 1... Line 1...
1
/* $Id: newlist.c 4 2024-09-24 18:35:15Z nishi $ */
1
/* $Id: newlist.c 10 2024-09-25 01:20:43Z nishi $ */
2
 
2
 
3
#include "ms_newlist.h"
3
#include "ms_newlist.h"
4
 
4
 
5
#include <stdio.h>
5
#include <stdio.h>
6
#include <stdlib.h>
6
#include <stdlib.h>
7
#include <string.h>
7
#include <string.h>
-
 
8
#include <unistd.h>
8
 
9
 
9
#include <cm_ipc.h>
10
#include <cm_ipc.h>
10
 
11
 
11
int ms_handle_newlist(int argc, char** argv, int start) {
12
int ms_handle_newlist(int argc, char** argv, int start) {
12
	int i;
13
	int i;
Line 19... Line 20...
19
	int sock = cm_ipc_connect();
20
	int sock = cm_ipc_connect();
20
	if(sock < 0) {
21
	if(sock < 0) {
21
		fprintf(stderr, "IPC connection failure\n");
22
		fprintf(stderr, "IPC connection failure\n");
22
		return 1;
23
		return 1;
23
	}
24
	}
-
 
25
	close(sock);
24
	return 0;
26
	return 0;
25
}
27
}