On Thu Jan  2 16:19:12 EST 2014, cinap_len...@felloff.net wrote:
> one can change the note group of a process with devproc
> by writing noteid file.
> 
>       case Qnoteid:
>               id = atoi(a);
>               if(id == p->pid) {
>                       p->noteid = id;
>                       break;
>               }
>               t = proctab(0);
>               for(et = t+conf.nproc; t < et; t++) {
>                       if(t->state == Dead)
>                               continue;
>                       if(id == t->noteid) {
>                               if(strcmp(p->user, t->user) != 0)
>                                       error(Eperm);
>                               p->noteid = id;
>                               break;
>                       }
>               }
>               if(p->noteid != id)
>                       error(Ebadarg);
>               break;

procopen() does nonone for Qnoteid.  isn't that enough?

- erik

Reply via email to