summaryrefslogtreecommitdiff
path: root/libdiskfs/fsys-goaway.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-26 20:06:16 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-26 20:06:16 +0000
commit70958bfc7c174c7a3057739adcdfbeac861353b4 (patch)
treed384764412c885fb131cd45043b8031d51a10720 /libdiskfs/fsys-goaway.c
parentbfbb75e4230a0990d44e5c95fcd5da06fcae2dda (diff)
(diskfs_S_fsys_goaway): If diskfs_shutdown returns zero, then exit
here.
Diffstat (limited to 'libdiskfs/fsys-goaway.c')
-rw-r--r--libdiskfs/fsys-goaway.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libdiskfs/fsys-goaway.c b/libdiskfs/fsys-goaway.c
index 5648bb42..d0872967 100644
--- a/libdiskfs/fsys-goaway.c
+++ b/libdiskfs/fsys-goaway.c
@@ -36,6 +36,15 @@ diskfs_S_fsys_goaway (fsys_t controlport,
/* XXX FSYS_GOAWAY_NOWAIT not implemented. */
ret = diskfs_shutdown (flags);
+
+ if (ret == 0)
+ {
+ /* We are supposed to exit, but first notify the caller. */
+ /* XXX But this isn't happening yet, because it means too
+ much pain. */
+ exit (0);
+ }
+
ports_port_deref (pt);
return ret;
}