summaryrefslogtreecommitdiff
path: root/pfinet/main.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-07-23 18:22:02 +0000
committerThomas Bushnell <thomas@gnu.org>1997-07-23 18:22:02 +0000
commit9fbca1dde9a1f7af9f86a9d244b6bf0e7141c250 (patch)
tree6d788f65f4fc686df993c5cdb33f4483914e381d /pfinet/main.c
parent1518464351c0e9339d4e4e4d418c24f6e62e4932 (diff)
Mon Jul 21 14:58:13 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* Makefile (HURDLIBS): Add iohelp. * main.c (trivfs_goaway): If FSYS_GOAWAY_FORCE is set, then go away, otherwise, continue to return EBUSY.
Diffstat (limited to 'pfinet/main.c')
-rw-r--r--pfinet/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pfinet/main.c b/pfinet/main.c
index 64c8a664..661a09c9 100644
--- a/pfinet/main.c
+++ b/pfinet/main.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -242,5 +242,8 @@ trivfs_modify_stat (struct trivfs_protid *cred,
error_t
trivfs_goaway (struct trivfs_control *cntl, int flags)
{
- return EBUSY;
+ if (flags & FSYS_GOAWAY_FORCE)
+ exit (0);
+ else
+ return EBUSY;
}