struct sockaddr_in sin;
int retry = 0;
int i ;
+
+#if 0
char *simargs[32] = { "s51","-P","-r 9756", NULL };
/* create the arguments */
simargs[i+3] = args[i];
}
simargs[i+3]= NULL;
+#endif
/* fork and start the simulator as a subprocess */
if ((simPid = fork())) {
else {
/* we are in the child process : start the simulator */
- if (execvp("s51",simargs) < 0) {
+// if (execvp("s51",simargs) < 0) {
+ if (execvp(args[0],args) < 0) {
perror("cannot exec simulator");
exit(1);
}