Re: New Serial Port Driver
Quote:
|
Originally Posted by Kevin Watson
Yes, I'd considered that. The way I look at it, I'd rather just publish the least convoluted, easiest to understand raw code that I can and let you guys cut and paste it the way you want.
-Kevin
|
I suppose. I went ahead and made those modifications myself, if anyone is interested in doing it quickly. It really doesn't make it TOO convoluted...  The source is attached.
__________________
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
|