summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat/pstat.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2018-06-18 09:15:05 +0000
committermpi <mpi@openbsd.org>2018-06-18 09:15:05 +0000
commitcd6537e7223b2832188a5e0003b6f78cca96e374 (patch)
tree14fb2d65d1512f7548535888ae6938b91fa7b695 /usr.sbin/pstat/pstat.c
parentTalk about the common USE_LIBTOOL vs BUILD_DEPENDS case (ports that only (diff)
downloadwireguard-openbsd-cd6537e7223b2832188a5e0003b6f78cca96e374.tar.xz
wireguard-openbsd-cd6537e7223b2832188a5e0003b6f78cca96e374.zip
Put file descriptors on shared data structures when they are completely
setup, take 3. LARVAL fd still exist, but they are no longer marked with a flag and no longer reachable via `fd_ofiles[]' or the global linked list. This allows us to simplifies a lot code grabbing new references to fds. All of this is now possible because dup2(2) refuses to clone LARVAL fds. Note that the `fdplock' could now be release in all open(2)-like syscalls, just like it is done in accept(2). With inputs from Mathieu Masson, visa@, guenther@ and art@ Previous version ok bluhm@, ok visa@, sthen@
Diffstat (limited to 'usr.sbin/pstat/pstat.c')
-rw-r--r--usr.sbin/pstat/pstat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 207f8123ba8..e0e3f33d61e 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pstat.c,v 1.116 2018/06/05 09:29:05 mpi Exp $ */
+/* $OpenBSD: pstat.c,v 1.117 2018/06/18 09:15:05 mpi Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
@@ -1044,8 +1044,6 @@ filemode(void)
if (kf->f_iflags & FIF_HASLOCK)
*fbp++ = 'L';
- if (kf->f_iflags & FIF_LARVAL)
- *fbp++ = 'l';
*fbp = '\0';
(void)printf("%6s %3ld", flagbuf, (long)kf->f_count);