Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumphijack Use host_close() instead of close() where ...



details:   https://anonhg.NetBSD.org/src/rev/9ba2d1c86c8c
branches:  trunk
changeset: 760950:9ba2d1c86c8c
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Jan 17 16:30:09 2011 +0000

description:
Use host_close() instead of close() where we know it to be the
right interface.

diffstat:

 lib/librumphijack/hijack.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 2047bfb4ccfc -r 9ba2d1c86c8c lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Mon Jan 17 16:27:54 2011 +0000
+++ b/lib/librumphijack/hijack.c        Mon Jan 17 16:30:09 2011 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: hijack.c,v 1.8 2011/01/17 16:27:54 pooka Exp $        */
+/*      $NetBSD: hijack.c,v 1.9 2011/01/17 16:30:09 pooka Exp $        */
 
 /*-
  * Copyright (c) 2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.8 2011/01/17 16:27:54 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.9 2011/01/17 16:30:09 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -932,9 +932,9 @@
                if (rpipe[1] != -1)
                        rump_sys_close(rpipe[1]);
                if (hpipe[0] != -1)
-                       close(hpipe[0]);
+                       host_close(hpipe[0]);
                if (hpipe[1] != -1)
-                       close(hpipe[1]);
+                       host_close(hpipe[1]);
                free(pfd_host);
                free(pfd_rump);
                errno = sverrno;



Home | Main Index | Thread Index | Old Index