version 1.28, 2016/08/27 00:11:27 |
version 1.29, 2016/09/26 11:43:38 |
|
|
/* $OpenXM: OpenXM/src/kxx/oxmain.c,v 1.27 2016/03/30 21:34:03 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] |
/* Note on IntelMac. [2006.06.05] |
SIGINT does not seem to be blocked on the rosetta emulator of ppc |
SIGINT does not seem to be blocked on the rosetta emulator of ppc |
on the IntelMac's. "ox" should be universal binary. |
on the IntelMac's. "ox" should be universal binary. |
Line 390 parentServerMain(int fdControl, int fdStream) { |
|
Line 390 parentServerMain(int fdControl, int fdStream) { |
|
/* Set the network byte order. */ |
/* Set the network byte order. */ |
fprintf(stderr,"controlByteOrder=%x\n",controlByteOrder); |
fprintf(stderr,"controlByteOrder=%x\n",controlByteOrder); |
|
|
int sigint[]={SIGINT,-1}; |
/* int sigint[]={SIGINT,-1}; |
set_signal(sigint[0],myServerExit); |
set_signal(sigint[0],myServerExit); |
unblock_signal(sigint); |
unblock_signal(sigint); |
|
*/ |
|
mysignal(SIGINT,SIG_IGN); |
while(1) { |
while(1) { |
mtag = oxfdGetOXheader(fdControl,&SerialCurrentControl); |
mtag = oxfdGetOXheader(fdControl,&SerialCurrentControl); |
/* get the message_tag */ |
/* get the message_tag */ |
Line 482 childServerMain(int fdControl, int fdStream) { |
|
Line 484 childServerMain(int fdControl, int fdStream) { |
|
setrlimit(RLIMIT_STACK,&res); |
setrlimit(RLIMIT_STACK,&res); |
} |
} |
|
|
int sigint[]={SIGINT,-1}; |
// int sigint[]={SIGINT,-1}; |
if (IgnoreSIGINT) { block_signal(sigint); fprintf(stderr,"SIGING\n");} |
// if (IgnoreSIGINT) { block_signal(sigint); fprintf(stderr,"SIGING\n");} |
|
if (IgnoreSIGINT) { mysignal(SIGINT,SIG_IGN); fprintf(stderr,"SIG_ING\n");} |
|
|
if (PacketMonitor) { |
if (PacketMonitor) { |
if (execle(ServerName,ServerName,"-monitor",NULL,environ)) { |
if (execle(ServerName,ServerName,"-monitor",NULL,environ)) { |