ELP_FERR(fprintf(stderr,"Failed writing to %s\n",framepars_driver_name));
exit(1);
}
fprintf(stderr,"autocampars triggered\n");
signal(SIGCHLD,SIG_IGN);// no zombies
//! do we need any fork at all if we now serve images to one client at a time?
if(((pid=fork()))<0){/// error
ELP_FERR(fprintf(stderr,"fork() failed\n"));
exit(1);
}elseif(pid==0){/// child
fflush(stdout);
fflush(stderr);
// rslt= execl(php_path, "-q", script_path, "", "--daemon", (char *) NULL); /// We do not need to pass any parameters here, but if we had to - first argument is lost (probably to "-q" in the script line 1
rslt=execl(script_path,"","--daemon",(char*)NULL);/// We do not need to pass any parameters here, but if we had to - first argument is lost (probably to "-q" in the script line 1
ELP_FERR(fprintf(stderr,"execl failed, returned %d, errno=%d\n",rslt,errno));
_exit(2);/// comes here only if error
}// end of child process
lseek(fd_fparmsall,LSEEK_FRAME_WAIT_REL+1,SEEK_END);/// skip 1 frame before returning
ELP_FERR(fprintf(stderr,"Failed writing to %s\n",framepars_driver_name[port]));
exit(1);
}
fprintf(stderr,"autocampars triggered\n");
signal(SIGCHLD,SIG_IGN);// no zombies
//! do we need any fork at all if we now serve images to one client at a time?
if(((pid=fork()))<0){/// error
ELP_FERR(fprintf(stderr,"fork() failed\n"));
exit(1);
}elseif(pid==0){/// child
fflush(stdout);
fflush(stderr);
// rslt= execl(php_path, "-q", script_path, "", "--daemon", (char *) NULL); /// We do not need to pass any parameters here, but if we had to - first argument is lost (probably to "-q" in the script line 1
rslt=execl(script_path,"","--daemon",sport,(char*)NULL);/// We do not need to pass any parameters here, but if we had to - first argument is lost (probably to "-q" in the script line 1
ELP_FERR(fprintf(stderr,"execl failed, returned %d, errno=%d\n",rslt,errno));
_exit(2);/// comes here only if error
}// end of child process
lseek(fd_fparmsall,LSEEK_FRAME_WAIT_REL+1,SEEK_END);/// skip 1 frame before returning
<builderarguments="apps-autocampars"command="${workspace_loc:/elphel-apps-autocampars/run_bitbake.sh}"enableCleanBuild="false"id="org.eclipse.cdt.build.core.settings.default.builder.1258366388"incrementalBuildTarget="-c compile -f"keepEnvironmentInBuildfile="false"managedBuildOn="false"name="Gnu Make Builder"superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<toolid="org.eclipse.cdt.build.core.settings.holder.libs.1885972775"name="holder for library settings"superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>