* ports.c (scm_port_for_each): Make a snapshot of the port table
authorMarius Vollmer <mvo@zagadka.de>
Thu, 8 Feb 2001 18:44:34 +0000 (18:44 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Thu, 8 Feb 2001 18:44:34 +0000 (18:44 +0000)
commitfdfe6305a5f234694b213a851617645552ed853b
tree11128210d729833d32f090162a51bb334ad28ac0
parent6a721afbc84fcf7881376107b0b8eaffff2bc3b5
* ports.c (scm_port_for_each): Make a snapshot of the port table
before iterating over it.  The table might change while the user
code is running.  With the snapshot, the user can depend on the
fact that each port that was open at teh start of the iteration is
encountered exactly once.  (ice-9 popen) depends on this.
libguile/ports.c