checkdirs(): walk processes not threads

2017-02-12 Thread Philip Guenther
All the threads in a process have the same filedesc structure, which is just a cache of the process's handle to it. That means it's cheaper to walk the allprocess list then the allproc list when looking for filedesc's that have the mounted-on directory as current working directory or root dir

Suggested patch for etherip(4) man page

2017-02-12 Thread Jason Tubnor
Hi, Upon implementation of etherip(4) over an iked(8) connection, I had issues with passing etherip traffic over the connection. The -current man page states: "The sysctl(3) variable net.inet.etherip.allow must be set to 1, unless ipsec(4) is being used to protect the traffic." However, unless

Re: acpi: pretend to be Darwin on Apple hardware

2017-02-12 Thread Theo de Raadt
>On Fri, Feb 10, 2017 at 08:56:13AM -0600, joshua stein wrote: >> On Thu, 09 Feb 2017 at 18:30:59 -0600, joshua stein wrote: >> > Without this, my MacBook Air won't suspend properly (hangs calling >> > _PTS) and a similar change in Linux from 2014 (commit >> > 7bc5a2bad0b8d9d1ac9f7b8b33150e4ddf1973

Re: Implement fork1_to_pid(). It's fork1(), but with pid as argument

2017-02-12 Thread Ossi Herrala
On Sun, Feb 12, 2017 at 01:34:14AM +0200, Ossi Herrala wrote: > After couple of private mails with guenther@ we came up with the > following patch. > > Introduce new flag FORK_PID1 for fork1(9). > > This flag is special and only for forking init(8) which wants to be > PID 1. > > With this flag

Re: arm/simplebus: externalize simplebus_attach_node

2017-02-12 Thread Patrick Wildt
On Sat, Feb 11, 2017 at 08:50:23PM -0500, Ian Sutton wrote: > Currently, we do not have a way to iterate over child FDT nodes, which > is a problem when you have a devices like the USB system on the am335x > (Beaglebone Black): > > https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=bbb-usb.git;a=blob;