Re: memstick.img is bloated with 7% 2K blocks of nulls

2011-02-15 Thread Gary Jennejohn
On Tue, 15 Feb 2011 01:19:45 +0100 Julian H. Stacey j...@berklix.com wrote: Could author p...@freebsd.org cc'd (or someone else if they are clear) please explain what cmdline is ? Possibly commit an appended // comment after int cmdline = 0; (in line 76 of 8.1 current

Re: map share memory to kernel space

2011-02-15 Thread John Baldwin
On Monday, February 14, 2011 10:12:59 pm beezarliu wrote: On 2011-02-14 22:56:28, John Baldwin wrote: On Monday, February 14, 2011 4:18:50 am beezarliu wrote: Hackers, I want to access a userland share memory in a kernel thread. So I tried to map the share memory to the kernel space.

Re: [PATCH] fix impossible case with waitpid(2) in truss

2011-02-15 Thread John Baldwin
On Monday, February 14, 2011 11:12:02 pm Garrett Cooper wrote: Hi, waitpid(2) returns a value in the set { -1, 0, pid } (-1 in the event of an ERROR, 0 when WNOHANG is specified, pid when the process exits according to wait(2)); it never returns a value -1. If someone could commit

Re: [PATCH] fix impossible case with waitpid(2) in truss

2011-02-15 Thread Garrett Cooper
On Tue, Feb 15, 2011 at 4:41 AM, John Baldwin j...@freebsd.org wrote: On Monday, February 14, 2011 11:12:02 pm Garrett Cooper wrote: Hi,     waitpid(2) returns a value in the set { -1, 0, pid } (-1 in the event of an ERROR, 0 when WNOHANG is specified, pid when the process exits according to

spontaneous reboot - ptrace

2011-02-15 Thread Dr. Baud
I've an interesting anomaly I'd appreciate some help with. As a result of looking at a threading problem I modified gcore to dump all memory segments associated with a process; basically comment out the Ignore conditional in readmap(). The result is that the box spontaneously reboots

Re: memstick.img is bloated with 7% 2K blocks of nulls

2011-02-15 Thread Julian H. Stacey
Gary Jennejohn wrote: On Tue, 15 Feb 2011 01:19:45 +0100 Julian H. Stacey j...@berklix.com wrote: Could author p...@freebsd.org cc'd (or someone else if they are clear) please explain what cmdline is ? Possibly commit an appended // comment after int cmdline = 0; (in line 76 of 8.1

Detecting listening servers in multi-ip jails

2011-02-15 Thread Dirk Engling
Hello, until jails could be bound to several ip addresses, my convenience feature in ezjail to check for and warn about listening services in the host system and other jails worked simply by asking: listeners_ip=`sockstat -4 -l | grep ${ip}:[[:digit:]]` listeners_all=`sockstat -4 -l | grep

Re: man 3 getopt char * const argv[] - is const wrong ?

2011-02-15 Thread Bruce Cran
On Tue, 15 Feb 2011 04:19:10 +0100 Julian H. Stacey j...@berklix.com wrote: Again you fail to post a precise complete URL for free open anonymous reference. One might wonder your involvment with open.org/ISO/IEEE. It seems registration is required for the SUS, but you can get POSIX.1-2008

Re: spontaneous reboot - ptrace

2011-02-15 Thread Kostik Belousov
On Tue, Feb 15, 2011 at 09:46:05AM -0800, Dr. Baud wrote: I've an interesting anomaly I'd appreciate some help with. As a result of looking at a threading problem I modified gcore to dump all memory segments associated with a process; basically comment out the Ignore conditional in