=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/io/ox_launch.c,v retrieving revision 1.25 retrieving revision 1.28 diff -u -p -r1.25 -r1.28 --- OpenXM_contrib2/asir2000/io/ox_launch.c 2015/08/06 10:01:52 1.25 +++ OpenXM_contrib2/asir2000/io/ox_launch.c 2016/08/27 03:09:03 1.28 @@ -44,7 +44,7 @@ * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. - * $OpenXM: OpenXM_contrib2/asir2000/io/ox_launch.c,v 1.24 2011/02/06 07:07:39 ohara Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/io/ox_launch.c,v 1.27 2016/08/24 05:33:58 ohara Exp $ */ #include #include @@ -52,7 +52,7 @@ #include "ca.h" #include "com.h" #include "ox.h" -#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__MINGW32__) || defined(__MINGW64__) +#if defined(VISUAL) || defined(__MINGW32__) #include #include #include @@ -69,7 +69,7 @@ #include #endif -#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) +#if defined(VISUAL) || defined(__MINGW32__) HANDLE hIntr,hReset,hKill; extern int _fileinfo; #endif @@ -118,7 +118,7 @@ void launch_main(argc,argv) int argc; char **argv; { -#if !defined(VISUAL) && !defined(__MINGW32__) && !defined(__MINGW64__) +#if !defined(VISUAL) && !defined(__MINGW32__) Obj p; char *name; char buf[BUFSIZ]; @@ -143,19 +143,19 @@ char **argv; dname = argv[6]; nolog = argc > 7 ? argv[7]: 0; -#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) +#if defined(VISUAL) || defined(__MINGW32__) init_socket(); #endif - signal(SIGINT,SIG_IGN); + set_signal(SIGINT,SIG_IGN); #if defined(SIGHUP) - signal(SIGHUP,SIG_IGN); + set_signal(SIGHUP,SIG_IGN); #endif #if defined(SIGUSR1) - signal(SIGUSR1,SIG_IGN); + set_signal(SIGUSR1,SIG_IGN); #endif #if defined(SIGTERM) - signal(SIGTERM,terminate_server); + set_signal(SIGTERM,terminate_server); #endif /* XXX a dirty hack */ @@ -199,7 +199,7 @@ char **argv; } } -#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) +#if defined(VISUAL) || defined(__MINGW32__) static void do_cmd(cmd) int cmd; { @@ -217,8 +217,11 @@ int cmd; SetEvent(hKill); break; case SM_control_reset_connection: +#if 0 + /* XXX obsolete */ MKUSINT(t,0); ox_send_data(sindex,t); +#endif SetEvent(hReset); break; default: @@ -247,8 +250,11 @@ int cmd; kill(cpid,SIGKILL); break; case SM_control_reset_connection: +#if 0 + /* XXX obsolete */ MKUSINT(t,0); ox_send_data(sindex,t); +#endif kill(cpid,SIGUSR1); break; default: @@ -263,7 +269,7 @@ int bs; char *dname; char *nolog; { -#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) +#if defined(VISUAL) || defined(__MINGW32__) char *av[BUFSIZ]; char sock_id[BUFSIZ],ox_intr[BUFSIZ],ox_reset[BUFSIZ],ox_kill[BUFSIZ]; char AsirExe[BUFSIZ];