summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-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;
}