summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/dos.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-28 03:05:06 +0000
committerjkh <jkh@FreeBSD.org>1995-05-28 03:05:06 +0000
commitf6adc3d0cb0c4fabebcca758ff1974167658353e (patch)
tree11cb8db7e042dea4f3131229406e5cf69f646241 /usr.sbin/sysinstall/dos.c
parentf95342e1c873302bd88bff8b1183ce16998990e5 (diff)
downloadFreeBSD-src-f6adc3d0cb0c4fabebcca758ff1974167658353e.zip
FreeBSD-src-f6adc3d0cb0c4fabebcca758ff1974167658353e.tar.gz
Humanize Poul-Henning's code. Status values should be properly
respected now.
Diffstat (limited to 'usr.sbin/sysinstall/dos.c')
-rw-r--r--usr.sbin/sysinstall/dos.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/usr.sbin/sysinstall/dos.c b/usr.sbin/sysinstall/dos.c
index d3999c5..2204bae 100644
--- a/usr.sbin/sysinstall/dos.c
+++ b/usr.sbin/sysinstall/dos.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: dos.c,v 1.1 1995/05/27 10:38:47 jkh Exp $
+ * $Id: dos.c,v 1.2 1995/05/27 23:39:28 phk Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -86,26 +86,14 @@ mediaGetDOS(char *file)
char buf[PATH_MAX];
snprintf(buf, PATH_MAX, "/dos/%s", file);
- return open(buf,O_RDONLY);
+ return open(buf, O_RDONLY);
}
void
mediaShutdownDOS(Device *dev)
{
- extern int getDistpid;
-
if (!DOSMounted)
return;
- if (getDistpid) {
- int i, j;
-
- i = waitpid(getDistpid, &j, 0);
- if (i < 0 || WEXITSTATUS(j)) {
- msgConfirm("Warning: Last extraction returned status code %d.", WEXITSTATUS(j));
- getDistpid = 0;
- }
- getDistpid = 0;
- }
msgDebug("Unmounting /dos\n");
if (unmount("/dos", 0) != 0)
msgConfirm("Could not unmount the DOS partition: %s\n", strerror(errno));
OpenPOWER on IntegriCloud