Re: svn commit: r230869 - head/usr.sbin/daemon

2012-02-06 Thread Pawel Jakub Dawidek
On Mon, Feb 06, 2012 at 09:39:47AM +0200, Mikolaj Golub wrote: On Sun, 5 Feb 2012 22:46:48 +0100 Pawel Jakub Dawidek wrote: PJD On Sun, Feb 05, 2012 at 11:27:10PM +0200, Mikolaj Golub wrote: Ok, using hastd code as a reference :-) here is my implementation. PJD - I'd not pass

svn commit: r231071 - head/tools/tools/fixwhite

2012-02-06 Thread Ed Schouten
Author: ed Date: Mon Feb 6 10:23:11 2012 New Revision: 231071 URL: http://svn.freebsd.org/changeset/base/231071 Log: Add fixwhite(1). This small utility can be used to `sanitize' the whitespace in source code. It does the following things: Global: - Remove empty lines at the

svn commit: r231074 - head/sys/netinet

2012-02-06 Thread Michael Tuexen
Author: tuexen Date: Mon Feb 6 10:47:12 2012 New Revision: 231074 URL: http://svn.freebsd.org/changeset/base/231074 Log: Fix a typo which was already fixed by eadler in r227489. We missed to integrate this fix in our code base, so it was removed in r227755. MFC after: 3 days. Modified:

svn commit: r231075 - in head/sys: fs/ext2fs fs/nfsclient geom/journal kern nfsclient sys ufs/ufs

2012-02-06 Thread Konstantin Belousov
Author: kib Date: Mon Feb 6 11:04:36 2012 New Revision: 231075 URL: http://svn.freebsd.org/changeset/base/231075 Log: Current implementations of sync(2) and syncer vnode fsync() VOP uses mnt_noasync counter to temporary remove MNTK_ASYNC mount option, which is needed to guarantee a

Re: svn commit: r230984 - head/sys/kern

2012-02-06 Thread Ivan Voras
On 4 February 2012 17:49, Ryan Stone rst...@freebsd.org wrote: Author: rstone Date: Sat Feb  4 16:49:29 2012 New Revision: 230984 URL: http://svn.freebsd.org/changeset/base/230984 Log:  Whenever a new kernel thread is spawned, explicitly clear any CPU affinity  set on the new thread.  This

svn commit: r231076 - in head: sbin/ipfw sys/netinet/ipfw

2012-02-06 Thread Gleb Smirnoff
Author: glebius Date: Mon Feb 6 11:35:29 2012 New Revision: 231076 URL: http://svn.freebsd.org/changeset/base/231076 Log: Make the 'tcpwin' option of ipfw(8) accept ranges and lists. Submitted by: sem Modified: head/sbin/ipfw/ipfw.8 head/sbin/ipfw/ipfw2.c

svn commit: r231077 - head/sys/ufs/ffs

2012-02-06 Thread Konstantin Belousov
Author: kib Date: Mon Feb 6 11:47:24 2012 New Revision: 231077 URL: http://svn.freebsd.org/changeset/base/231077 Log: JNEWBLK dependency may legitimately appear on the buf dependency list. If softdep_sync_buf() discovers such dependency, it should do nothing, which is safe as it is only

svn commit: r231078 - head/sbin/ipfw

2012-02-06 Thread Gleb Smirnoff
Author: glebius Date: Mon Feb 6 11:51:04 2012 New Revision: 231078 URL: http://svn.freebsd.org/changeset/base/231078 Log: Bump .Dd for r231076. Submitted by: bz Modified: head/sbin/ipfw/ipfw.8 Modified: head/sbin/ipfw/ipfw.8

svn commit: r231079 - head/usr.bin/rpcgen

2012-02-06 Thread Dimitry Andric
Author: dim Date: Mon Feb 6 12:03:21 2012 New Revision: 231079 URL: http://svn.freebsd.org/changeset/base/231079 Log: Let rpcgen(1) support an environment variable RPCGEN_CPP to find the C preprocessor to run. Previously, it always ran /usr/bin/cpp, unless you used the -Y option, and even

svn commit: r231080 - head/usr.bin/rpcgen

2012-02-06 Thread Dimitry Andric
Author: dim Date: Mon Feb 6 12:08:41 2012 New Revision: 231080 URL: http://svn.freebsd.org/changeset/base/231080 Log: Amend r231079 by properly shifting up the existing arguments in rpc_main.c's insarg() function. I had forgotten to put this in my patch queue, sorry. Pointy hat to:

Re: svn commit: r230482 - head/release

2012-02-06 Thread TAKAHASHI Yoshihiro
In article 4f2ea4f7.9010...@freebsd.org Nathan Whitehorn nwhiteh...@freebsd.org writes: TERM=xterm This code is also used on pc98, right? I think on pc98 we still need to use TERM=cons25w, to support Japanese character sets and keyboard input. How about the attached patch? The top half

svn commit: r231087 - head/lib/libutil

2012-02-06 Thread Guy Helmer
Author: ghelmer Date: Mon Feb 6 14:11:24 2012 New Revision: 231087 URL: http://svn.freebsd.org/changeset/base/231087 Log: Using the O_CLOEXEC flag on open(2) caused the pidfile lock to be lost when the child process execs daemon's target program thanks to flock(2) semantics. So, we

Re: svn commit: r231087 - head/lib/libutil

2012-02-06 Thread Pawel Jakub Dawidek
On Mon, Feb 06, 2012 at 02:11:24PM +, Guy Helmer wrote: Author: ghelmer Date: Mon Feb 6 14:11:24 2012 New Revision: 231087 URL: http://svn.freebsd.org/changeset/base/231087 Log: Using the O_CLOEXEC flag on open(2) caused the pidfile lock to be lost when the child process execs

Re: svn commit: r230869 - head/usr.sbin/daemon

2012-02-06 Thread Guy Helmer
On Feb 5, 2012, at 3:39 AM, Pawel Jakub Dawidek wrote: On Sat, Feb 04, 2012 at 08:16:42PM +0200, Mikolaj Golub wrote: ref8-amd64:/home/trociny% uname -r 8.2-STABLE ref8-amd64:/home/trociny% daemon -p /tmp/sleep.pid sleep 10 ref8-amd64:/home/trociny% daemon -p /tmp/sleep.pid sleep 10

Re: svn commit: r230869 - head/usr.sbin/daemon

2012-02-06 Thread Pawel Jakub Dawidek
On Mon, Feb 06, 2012 at 08:31:47AM -0600, Guy Helmer wrote: If my understanding of flock(2) semantics is correct, with open(2) O_CLOEXEC or fcntl(2) FD_CLOEXEC set on the pidfile, the closing of the pidfile file descriptor during an exec will result in loss of the lock on the pidfile

Re: svn commit: r230984 - head/sys/kern

2012-02-06 Thread John Baldwin
On Monday, February 06, 2012 6:34:06 am Ivan Voras wrote: On 4 February 2012 17:49, Ryan Stone rst...@freebsd.org wrote: Author: rstone Date: Sat Feb 4 16:49:29 2012 New Revision: 230984 URL: http://svn.freebsd.org/changeset/base/230984 Log: Whenever a new kernel thread is

Re: svn commit: r231026 - head/sys/powerpc/ofw

2012-02-06 Thread John Baldwin
On Sunday, February 05, 2012 11:54:26 am Nathan Whitehorn wrote: Author: nwhitehorn Date: Sun Feb 5 16:54:26 2012 New Revision: 231026 URL: http://svn.freebsd.org/changeset/base/231026 Log: Make sure to remap adjusted resources. Hmm, I had considered remapping adjusted resources an

Re: svn commit: r230482 - head/release

2012-02-06 Thread Nathan Whitehorn
On 02/06/12 07:07, TAKAHASHI Yoshihiro wrote: In article4f2ea4f7.9010...@freebsd.org Nathan Whitehornnwhiteh...@freebsd.org writes: TERM=xterm This code is also used on pc98, right? I think on pc98 we still need to use TERM=cons25w, to support Japanese character sets and keyboard

Re: svn commit: r231026 - head/sys/powerpc/ofw

2012-02-06 Thread Nathan Whitehorn
On 02/06/12 06:53, John Baldwin wrote: On Sunday, February 05, 2012 11:54:26 am Nathan Whitehorn wrote: Author: nwhitehorn Date: Sun Feb 5 16:54:26 2012 New Revision: 231026 URL: http://svn.freebsd.org/changeset/base/231026 Log: Make sure to remap adjusted resources. Hmm, I had considered

Re: svn commit: r230984 - head/sys/kern

2012-02-06 Thread Ryan Stone
On Mon, Feb 6, 2012 at 6:34 AM, Ivan Voras ivo...@freebsd.org wrote: Shouldn't new threads inherit affinity from the threads which spawned them? Kernel threads were not inheriting affinity from the thread that spawned them. They were inheriting affinity from an arbitrary sibling thread in the

Re: svn commit: r230869 - head/usr.sbin/daemon

2012-02-06 Thread John Baldwin
On Monday, February 06, 2012 9:43:39 am Pawel Jakub Dawidek wrote: On Mon, Feb 06, 2012 at 08:31:47AM -0600, Guy Helmer wrote: If my understanding of flock(2) semantics is correct, with open(2) O_CLOEXEC or fcntl(2) FD_CLOEXEC set on the pidfile, the closing of the pidfile file descriptor

Re: svn commit: r231026 - head/sys/powerpc/ofw

2012-02-06 Thread John Baldwin
On Monday, February 06, 2012 10:40:54 am Nathan Whitehorn wrote: On 02/06/12 06:53, John Baldwin wrote: On Sunday, February 05, 2012 11:54:26 am Nathan Whitehorn wrote: Author: nwhitehorn Date: Sun Feb 5 16:54:26 2012 New Revision: 231026 URL:

svn commit: r231088 - in head/sys: fs/nfsclient fs/nwfs fs/smbfs kern nfsclient sys

2012-02-06 Thread John Baldwin
Author: jhb Date: Mon Feb 6 17:00:28 2012 New Revision: 231088 URL: http://svn.freebsd.org/changeset/base/231088 Log: Rename cache_lookup_times() to cache_lookup() and retire the old API and ABI stub for cache_lookup(). Modified: head/sys/fs/nfsclient/nfs_clvnops.c

Re: svn commit: r231026 - head/sys/powerpc/ofw

2012-02-06 Thread Nathan Whitehorn
On 02/06/12 10:06, John Baldwin wrote: On Monday, February 06, 2012 10:40:54 am Nathan Whitehorn wrote: On 02/06/12 06:53, John Baldwin wrote: On Sunday, February 05, 2012 11:54:26 am Nathan Whitehorn wrote: Author: nwhitehorn Date: Sun Feb 5 16:54:26 2012 New Revision: 231026 URL:

Re: svn commit: r230972 - in head: share/mk sys/amd64/conf sys/i386/conf sys/modules sys/modules/drm sys/modules/sound/driver sys/modules/usb tools/build/options

2012-02-06 Thread Jung-uk Kim
On Friday 03 February 2012 07:54 pm, Robert Millan wrote: +nodevice ti Tigon 1 and 2 had open-sourced firmware. In fact, I believe wpaul developed custom firmware for FreeBSD and the (early?) sources are still available here: http://people.freebsd.org/~wpaul/Alteon/ Jung-uk Kim

svn commit: r231091 - head/sys/ufs/ffs

2012-02-06 Thread Konstantin Belousov
Author: kib Date: Mon Feb 6 17:59:14 2012 New Revision: 231091 URL: http://svn.freebsd.org/changeset/base/231091 Log: Add missing opt_quota.h include to activate #ifdef QUOTA blocks, apparently a step in unbreaking QUOTA support. Reported and tested by: Adam Strohl adams-freebsd

svn commit: r231092 - head/sys/cam/ctl

2012-02-06 Thread Ed Maste
Author: emaste Date: Mon Feb 6 18:11:00 2012 New Revision: 231092 URL: http://svn.freebsd.org/changeset/base/231092 Log: Avoid panic from unlocking a not locked mutex (in some error cases). Reviewed by: ken@ Modified: head/sys/cam/ctl/ctl_frontend_cam_sim.c Modified:

svn commit: r231095 - in head/sys: kern sys

2012-02-06 Thread Ed Schouten
Author: ed Date: Mon Feb 6 18:15:46 2012 New Revision: 231095 URL: http://svn.freebsd.org/changeset/base/231095 Log: Fix whitespace inconsistencies in TTY code. Modified: head/sys/kern/tty.c head/sys/kern/tty_info.c head/sys/kern/tty_ttydisc.c head/sys/sys/ttycom.h

Re: svn commit: r231025 - in head: share/man/man4 sys/netinet sys/sys

2012-02-06 Thread Andrey Zonov
On 05.02.2012 20:53, Gleb Smirnoff wrote: Author: glebius Date: Sun Feb 5 16:53:02 2012 New Revision: 231025 URL: http://svn.freebsd.org/changeset/base/231025 Log: Add new socket options: TCP_KEEPINIT, TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT, that allow to control initial timeout,

svn commit: r231098 - head/tools/tools/fixwhite

2012-02-06 Thread Ed Schouten
Author: ed Date: Mon Feb 6 18:52:40 2012 New Revision: 231098 URL: http://svn.freebsd.org/changeset/base/231098 Log: Add a `fix' for another whitespace bug. If the sentence starts with a multiple of eight spaces, the sentence should in almost all practical cases have started with tabs

Re: svn commit: r230869 - head/usr.sbin/daemon

2012-02-06 Thread Andrey Zonov
On 06.02.2012 19:25, John Baldwin wrote: My expectation is that as long as parent process holds pidfile descriptor open and locked, the pidfile should remain locked even after fork(2)/execve(2). Worth checking, though. Yes, if the daemon process hung around that would work. Note that I think

svn commit: r231099 - head/sys/dev/ath/ath_dfs/null

2012-02-06 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 20:23:21 2012 New Revision: 231099 URL: http://svn.freebsd.org/changeset/base/231099 Log: Contribute some example code which demonstrates how to initialise the radar parameters for the AR5416 and later NICs. These parameters have been tested on the

svn commit: r231101 - head/usr.bin/rpcgen

2012-02-06 Thread Dimitry Andric
Author: dim Date: Mon Feb 6 21:35:11 2012 New Revision: 231101 URL: http://svn.freebsd.org/changeset/base/231101 Log: In usr.bin/rpcgen/rpc_main.c, use execvp(3) instead of execv(3), so rpcgen will search the current PATH for the preprocessor. This makes it possible to run a preprocessor

Re: svn commit: r230869 - head/usr.sbin/daemon

2012-02-06 Thread Mikolaj Golub
On Mon, 6 Feb 2012 09:27:06 +0100 Pawel Jakub Dawidek wrote: PJD For the patch itself. PJD You don't have to have two separate cases depending on request for PJD pidfile. You can specify NULL pfh to the pidfile functions. PJD Even in example from the manual page when pfh is NULL there is a

svn commit: r231102 - head/sbin/fsdb

2012-02-06 Thread Don Lewis
Author: truckman Date: Mon Feb 6 21:50:11 2012 New Revision: 231102 URL: http://svn.freebsd.org/changeset/base/231102 Log: Improve sparse file handling when printing the block list for an inode by not bailing out early when a hole is encountered in the direct block list. Print NULL block

Re: svn commit: r230869 - head/usr.sbin/daemon

2012-02-06 Thread Guy Helmer
On Feb 6, 2012, at 3:46 PM, Mikolaj Golub wrote: On Mon, 6 Feb 2012 09:27:06 +0100 Pawel Jakub Dawidek wrote: PJD For the patch itself. PJD You don't have to have two separate cases depending on request for PJD pidfile. You can specify NULL pfh to the pidfile functions. PJD Even in

Re: svn commit: r230869 - head/usr.sbin/daemon

2012-02-06 Thread Pawel Jakub Dawidek
On Mon, Feb 06, 2012 at 11:46:24PM +0200, Mikolaj Golub wrote: On Mon, 6 Feb 2012 09:27:06 +0100 Pawel Jakub Dawidek wrote: PJD For the patch itself. PJD You don't have to have two separate cases depending on request for PJD pidfile. You can specify NULL pfh to the pidfile functions.

svn commit: r231106 - head/lib/libthr/thread

2012-02-06 Thread David Xu
Author: davidxu Date: Tue Feb 7 02:57:36 2012 New Revision: 231106 URL: http://svn.freebsd.org/changeset/base/231106 Log: Plug a memory leak. When a cached thread is reused, don't clear sleep queue pointers, just reuse it. PR: 164828 MFC after:1 week Modified:

svn commit: r231111 - head/share/man/man7

2012-02-06 Thread Eitan Adler
Author: eadler Date: Tue Feb 7 04:00:57 2012 New Revision: 23 URL: http://svn.freebsd.org/changeset/base/23 Log: ports(7) currently makes no mention of LOCALBASE: fix that PR: docs/159551 Submitted by: Matthew Seaman m.sea...@infracaninophile.co.uk Approved by: gjb

svn commit: r231115 - head/sys/dev/cxgbe

2012-02-06 Thread Navdeep Parhar
Author: np Date: Tue Feb 7 06:21:59 2012 New Revision: 231115 URL: http://svn.freebsd.org/changeset/base/231115 Log: cxgbe: reduce diffs with other branches. Will help future MFCs from HEAD. MFC after:3 days Modified: head/sys/dev/cxgbe/adapter.h head/sys/dev/cxgbe/t4_l2t.c