version 1.1, 2005/01/04 21:43:51
|
version 1.2, 2005/01/04 21:59:23
|
Line 1934 static void maketab(char typ, long pid,
|
Line 1934 static void maketab(char typ, long pid,
|
pt = findtab(&runtab, pid, tableid); |
pt = findtab(&runtab, pid, tableid); |
} else { |
} else { |
t = *pt; |
t = *pt; |
|
#ifdef DEBUG |
|
fprintf(stderr, "close old fd: %d\n", t->u.a.fd); |
|
#endif |
close(t->u.a.fd); |
close(t->u.a.fd); |
} |
} |
if (pt == NULL) { |
if (pt == NULL) { |
Line 1952 static void maketab(char typ, long pid,
|
Line 1955 static void maketab(char typ, long pid,
|
t->esi = e; |
t->esi = e; |
t->tab = NULL; |
t->tab = NULL; |
memset(&t->descrnum[0], 0, sizeof(t->descrnum[0])); |
memset(&t->descrnum[0], 0, sizeof(t->descrnum[0])); |
t->u.a.tablen = 0; |
memset(&t->u, 0, sizeof(t->u)); |
t->u.a.itab = 0; |
|
t->u.a.fd = fd; |
t->u.a.fd = fd; |
t->u.a.isdescr = 0; |
|
t->u.a.isyn = 0; |
|
t->u.a.numcount = 0; |
|
t->u.a.loopcount[0] = 0; |
|
t->u.a.ibuf = 0; |
|
t->next = newtab; |
t->next = newtab; |
newtab = t; |
newtab = t; |
} |
} |