=================================================================== RCS file: /home/cvs/OpenXM/src/kxx/oxmain.c,v retrieving revision 1.21 retrieving revision 1.29 diff -u -p -r1.21 -r1.29 --- OpenXM/src/kxx/oxmain.c 2005/02/28 12:53:44 1.21 +++ OpenXM/src/kxx/oxmain.c 2016/09/26 11:43:38 1.29 @@ -1,4 +1,12 @@ -/* $OpenXM: OpenXM/src/kxx/oxmain.c,v 1.20 2004/09/17 12:32:11 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kxx/oxmain.c,v 1.28 2016/08/27 00:11:27 takayama Exp $ */ +/* Note on IntelMac. [2006.06.05] + SIGINT does not seem to be blocked on the rosetta emulator of ppc + on the IntelMac's. "ox" should be universal binary. + A dirty hack to generate a universal binary of ox is as follows. + (1) Add -arch ppc -arch i386 to CFLAGS in src/kxx/Makefile + and src/kan96xx/plugin/Makefile + (2) Build ox +*/ /* nullserver01 */ #include #include @@ -6,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -33,11 +42,13 @@ int Quiet = 0; int LocalMode = 1; int NotifyPortnumber = 0; int Do_not_use_control_stream_to_tell_no_server = 1; +int IgnoreSIGINT = 1; +int Ox_protocol_1999 = 0; static void errorToStartEngine(void); static int findOxServer(char *server); static void couldNotFind(char *s); /* gcc -v -c hoge.c */ -static void mywait(); +static void mywait(int m); void *sGC_malloc(int n) { return (void *)malloc(n); @@ -60,9 +71,13 @@ main(int argc, char *argv[]) { char *passData = NULL; int result; int sleepingTime = 0; + int authEncoding=0; + FILE *fp; + char *stmp; extern int OxTerminateMode; - signal(SIGHUP,SIG_IGN); /* ignore x of xterm */ + int sighup[]={SIGHUP,-1}; + block_signal(sighup); /* ignore x of xterm */ strcpy(sname,"localhost"); strcpy(ServerName,SERVERNAME); i = 1; @@ -119,6 +134,21 @@ main(int argc, char *argv[]) { if (i