summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-09-01 02:18:12 +0000
committerRoland McGrath <roland@gnu.org>1999-09-01 02:18:12 +0000
commit9e83d27c3de5c1ddd720fa50a3171fe655aa231e (patch)
tree5f84b65ba2e0760cfb215f1569c9b943484278a2
parentb4c19c67501c99d458cfb0a2d314052902e4d252 (diff)
1999-08-31 Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
* bogus-fifo.c (main): Deallocate bootstrap port after using it. * fifo.c (main): Likewise. * firmlink.c (main): Likewise. * ifsock.c (main): Likewise. * magic.c (main): Likewise. * null.c (main): Likewise. * symlink.c (main): Likewise.
-rw-r--r--trans/bogus-fifo.c1
-rw-r--r--trans/fifo.c1
-rw-r--r--trans/firmlink.c1
-rw-r--r--trans/ifsock.c1
-rw-r--r--trans/magic.c1
-rw-r--r--trans/null.c1
-rw-r--r--trans/symlink.c1
7 files changed, 7 insertions, 0 deletions
diff --git a/trans/bogus-fifo.c b/trans/bogus-fifo.c
index 3151dcc8..acad6e4b 100644
--- a/trans/bogus-fifo.c
+++ b/trans/bogus-fifo.c
@@ -55,6 +55,7 @@ main (int argc, char **argv)
/* Reply to our parent */
mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, &fsys);
err = fsys_startup (bootstrap, fsys, MACH_MSG_TYPE_MAKE_SEND, &realnode);
+ mach_port_deallocate (mach_task_self (), bootstrap);
if (err)
error(1, err, "starting translator");
diff --git a/trans/fifo.c b/trans/fifo.c
index 4ad1e1db..3b62cc21 100644
--- a/trans/fifo.c
+++ b/trans/fifo.c
@@ -94,6 +94,7 @@ main (int argc, char **argv)
/* Reply to our parent */
err = trivfs_startup (bootstrap, 0, 0, 0, 0, 0, &fsys);
+ mach_port_deallocate (mach_task_self (), bootstrap);
if (err)
error (3, err, "Contacting parent");
diff --git a/trans/firmlink.c b/trans/firmlink.c
index d38f4dc8..de9cd19b 100644
--- a/trans/firmlink.c
+++ b/trans/firmlink.c
@@ -82,6 +82,7 @@ main (int argc, char **argv)
/* Reply to our parent */
err = trivfs_startup (bootstrap, 0, 0, 0, 0, 0, &fsys);
+ mach_port_deallocate (mach_task_self (), bootstrap);
if (err)
error (2, err, "Contacting parent");
diff --git a/trans/ifsock.c b/trans/ifsock.c
index 2e53ea96..15fb7df3 100644
--- a/trans/ifsock.c
+++ b/trans/ifsock.c
@@ -76,6 +76,7 @@ main (int argc, char **argv)
/* Reply to our parent */
err = trivfs_startup (bootstrap, 0, control_class, port_bucket,
node_class, port_bucket, NULL);
+ mach_port_deallocate (mach_task_self (), bootstrap);
if (err)
error(2, err, "Contacting parent");
diff --git a/trans/magic.c b/trans/magic.c
index 733ce2d7..045033e8 100644
--- a/trans/magic.c
+++ b/trans/magic.c
@@ -53,6 +53,7 @@ main (int argc, char **argv)
mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, &control);
err =
fsys_startup (bootstrap, 0, control, MACH_MSG_TYPE_MAKE_SEND, &realnode);
+ mach_port_deallocate (mach_task_self (), bootstrap);
if (err)
error (1, err, "starting translator");
diff --git a/trans/null.c b/trans/null.c
index 79de5174..2729a639 100644
--- a/trans/null.c
+++ b/trans/null.c
@@ -50,6 +50,7 @@ main (int argc, char **argv)
/* Reply to our parent */
err = trivfs_startup (bootstrap, 0, 0, 0, 0, 0, &fsys);
+ mach_port_deallocate (mach_task_self (), bootstrap);
if (err)
error(3, err, "Contacting parent");
diff --git a/trans/symlink.c b/trans/symlink.c
index d8495f8b..24a1a30f 100644
--- a/trans/symlink.c
+++ b/trans/symlink.c
@@ -57,6 +57,7 @@ main (int argc, char **argv)
mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, &control);
error =
fsys_startup (bootstrap, 0, control, MACH_MSG_TYPE_MAKE_SEND, &realnode);
+ mach_port_deallocate (mach_task_self (), bootstrap);
if (error)
{
perror ("Starting up translator");