version 1.19, 2004/09/17 08:46:10 |
version 1.20, 2004/09/17 12:32:11 |
|
|
/* $OpenXM: OpenXM/src/kxx/oxmain.c,v 1.18 2004/09/17 07:27:28 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kxx/oxmain.c,v 1.19 2004/09/17 08:46:10 takayama Exp $ */ |
/* nullserver01 */ |
/* nullserver01 */ |
#include <stdio.h> |
#include <stdio.h> |
#include <fcntl.h> |
#include <fcntl.h> |
Line 157 main(int argc, char *argv[]) { |
|
Line 157 main(int argc, char *argv[]) { |
|
result = 0; |
result = 0; |
|
|
|
|
|
if ((fdControl < 0) || (fdStream < 0)) { |
|
fprintf(stderr,"Waiting for 10 seconds to show an error.\n"); |
|
sleep(10); |
|
} |
|
|
if (portControl != -1) { |
if (portControl != -1) { |
MyServerPid = fork(); |
MyServerPid = fork(); |
if (MyServerPid > 0 ) parentServerMain(fdControl,fdStream); |
if (MyServerPid > 0 ) parentServerMain(fdControl,fdStream); |
Line 249 main(int argc, char *argv[]) { |
|
Line 254 main(int argc, char *argv[]) { |
|
free(s); |
free(s); |
} |
} |
|
|
|
if ((fdControl < 0) || (fdStream < 0)) { |
|
fprintf(stderr,"Waiting for 10 seconds to show an error.\n"); |
|
sleep(10); |
|
} |
|
|
|
|
result = 0; |
result = 0; |
if (portControl != -1) { |
if (portControl != -1) { |
MyServerPid = fork(); |
MyServerPid = fork(); |
Line 269 static void errorToStartEngine(void) { |
|
Line 280 static void errorToStartEngine(void) { |
|
If you implement this, set Do_not_use_control_stream_to_tell_no_server to |
If you implement this, set Do_not_use_control_stream_to_tell_no_server to |
zero. |
zero. |
*/ |
*/ |
sleep(2); |
sleep(10); |
exit(-1); |
exit(-1); |
} |
} |
|
|