Branch: Tag:

2000-12-28

2000-12-28 01:00:48 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

some proper paranoia

Rev: NT/tools/sprshd:1.23

79:    return ( ( ((p1||"") + ";" + (p2||"")) / ";" ) - ({""}) ) * ";";   }    + Thread.Mutex outlock=Thread.Mutex();      void myproxy(object pi, object io, int channel)   {
86:    {    string s=pi->read(1000,1);    if(!s || !strlen(s)) break; +  object key=outlock->lock();    io->write(sprintf("%c%3c%s",channel,strlen(s),channel,s)); -  +  destruct(key);    }   }   
281:    thread_create(monitor,p2,p);   #endif    +  object proxythread;    if(env->__handles_stderr)    { -  thread_create(myproxy,pe,io,2); +  proxythread=thread_create(myproxy,pe,io,2);    myproxy(pi,io,1);    }else{ -  thread_create(myproxy,pe,io,0); +  proxythread=thread_create(myproxy,pe,io,0);    myproxy(pi,io,0);    } -  +  proxythread->wait();       io->write(sprintf("%4c",0));    int code;