|
Re: Program error after controller reset
Well... figured out what went wrong. It's sorta obvious, but was rather stupid. We tried doing a printf() in some of our initialization code, and we had placed it before initialize_serial_comms()... so, yeah, great error...
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}
Visit my completely useless website! http://randomperson.cjb.net
|