=================================================================== RCS file: /home/cvs/OpenXM/src/ox_math/serv1.c,v retrieving revision 1.1.1.1 retrieving revision 1.4 diff -u -p -r1.1.1.1 -r1.4 --- OpenXM/src/ox_math/serv1.c 1999/10/29 08:06:41 1.1.1.1 +++ OpenXM/src/ox_math/serv1.c 1999/11/18 21:56:43 1.4 @@ -1,6 +1,5 @@ /* -*- mode: C; coding: euc-japan -*- */ -/* $OpenXM$ */ -/* $Id: serv1.c,v 1.1.1.1 1999/10/29 08:06:41 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_math/serv1.c,v 1.3 1999/11/03 10:56:40 ohara Exp $ */ #include #include @@ -11,6 +10,8 @@ #include "ox.h" #include "serv2.h" +static int send_ox_sync_ball(int fd); + extern MLINK lp; static int sv_read = 3; static int sv_write = 4; @@ -104,6 +105,13 @@ int receive_ox(int fd_read, int fd_write) return 0; } +int shutdown() +{ + close(sv_read); + MATH_exit(); + exit(0); +} + int main() { MATH_init(); @@ -113,7 +121,7 @@ int main() signal(SIGKILL, handler_kill); /* バイトオーダの決定 */ - decideByteOrder2(sv_read, sv_write, 0); + decideByteOrderServer(sv_read, 0); while(1) { receive_ox(sv_read, sv_write); @@ -127,5 +135,5 @@ int main() already_send_ox_sync_ball = 0; } } - MATH_exit(); + shutdown(); }