various bug fixes
This commit is contained in:
parent
4f48d1d4f7
commit
2e965b3324
12 changed files with 82 additions and 41 deletions
|
|
@ -30,7 +30,7 @@ sproc(int xpid)
|
|||
correg = nil;
|
||||
|
||||
if(mapproc(xpid, cormap, &correg) < 0)
|
||||
error("setproc %d: %r", pid);
|
||||
error("setproc %d: %r", xpid);
|
||||
|
||||
/* XXX check text file here? */
|
||||
|
||||
|
|
@ -165,6 +165,17 @@ install(int pid)
|
|||
s->v->set = 1;
|
||||
}
|
||||
|
||||
static int
|
||||
installed(int pid)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i=0; i<Maxproc; i++)
|
||||
if(ptab[i].pid == pid)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
deinstall(int pid)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue