]> granicus.if.org Git - strace/commit
2002-12-17 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Wed, 18 Dec 2002 04:16:10 +0000 (04:16 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 18 Dec 2002 04:16:10 +0000 (04:16 +0000)
commitee9d435275fd7abf736992f84b5053ee16ec4fc7
tree55ea3c9768d4967b1cf199af0d440cdee3959813
parent13f0b430417514d4c6a09073b66bbdbdefa426db
2002-12-17  Roland McGrath  <roland@redhat.com>

* strace.c (tcbtab): Make this a pointer to pointers, not an array.
(tcbtabsize): New variable.
(main): Initialize them using dynamic allocation.
(alloctcb, main): Use tcbtabsize in place of MAX_PROCS; indirect.
(pid2tcb, cleanup): Likewise.
[USE_PROCFS] (pollv): Make this a pointer, not an array; make static.
(rebuild_pollv): Dynamically allocate the vector.
* defs.h (tcbtab): Update decls.
(MAX_PROCS): Macro removed, no more static limit on this.
* process.c (fork_tcb): New function.
(internal_clone, internal_fork): Use it instead of checking nprocs.
defs.h
process.c
strace.c