Changeset 11205 for fact/BIASctrl
- Timestamp:
- 06/28/11 14:28:46 (14 years ago)
- Location:
- fact/BIASctrl
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/BIASctrl/BIASctrl.cc
r10153 r11205 29 29 siginterrupt(SIGTERM, true); 30 30 31 system("clear"); 31 if (system("clear") == -1) printf("Error with system() call\n"); 32 32 33 printf("\n*** BIASctrl (compiled %s, %s) ***\n\n", __DATE__, __TIME__); 33 34 -
fact/BIASctrl/Crate.cc
r10905 r11205 134 134 FD_ZERO(&SelectDescriptor); FD_SET(fDescriptor, &SelectDescriptor); 135 135 if (select(fDescriptor+1, &SelectDescriptor, NULL, NULL, &WaitTime)==-1) { 136 if (errno = EINTR) goto ExitCommunicate; // in case program is exiting136 if (errno == EINTR) goto ExitCommunicate; // in case program is exiting 137 137 m->Message(m->FATAL, "Error with select() (%s)", strerror(errno)); 138 138 } -
fact/BIASctrl/History.txt
r10905 r11205 12 12 Added 'crate' command. Changed signaling of program exit. 13 13 3/6/2011 Fixed bug in channel addressing from board numbers above 7. 14 28/6/2011 Adapted for compilation under ubuntu -
fact/BIASctrl/Makefile
r10049 r11205 6 6 7 7 CPPFLAGS = -O3 -Wall $(INCDIRS) 8 LDLIBS = -L/usr/lib/termcap -lstdc++ -lpthread -l fl -lreadline -ltermcap $(DIMDIR)/linux/libdim.a8 LDLIBS = -L/usr/lib/termcap -lstdc++ -lpthread -lreadline -ltermcap $(DIMDIR)/linux/libdim.a 9 9 10 10 BIASctrl: $(OBJECTS) -
fact/BIASctrl/User.cc
r10153 r11205 114 114 // Shell command 115 115 if(Command[0]=='.') { 116 system(Command.c_str()+1); 116 if (system(Command.c_str()+1) == 1) { 117 PrintMessage("Error with system() call\n"); 118 } 117 119 return; 118 120 } … … 620 622 bool User::ConvertToRange(string String, struct User::Range &R) { 621 623 622 int N , M;624 int N=0, M=0; // Init to avoid compiler warning 623 625 624 626 // Full range
Note:
See TracChangeset
for help on using the changeset viewer.