Pls sanity check my semtimedop(2) implementation

2008-07-12 Thread Michael B Allen
Hi, Below is a semtimedop(2) implementation that I'm using for FreeBSD. I was hoping someone could look it over and tell me if they think the implementation is sound. The code seems to work ok but when stressing the FreeBSD build of my app I have managed to provoke errors related to concurrency (

Pls sanity check my semtimedop(2) implementation

2008-07-13 Thread Michael B Allen
Hi, Below is a semtimedop(2) implementation that I'm using for FreeBSD. I was hoping someone could look it over and tell me if they think the implementation is sound. The code seems to work ok but when stressing the FreeBSD build of my app I have managed to provoke errors related to concurrency (

Re: Pls sanity check my semtimedop(2) implementation

2008-07-13 Thread Michael B Allen
On 7/13/08, Mikko Työläjärvi <[EMAIL PROTECTED]> wrote: > On Sun, 13 Jul 2008, Michael B Allen wrote: > > > > Hi, > > > > Below is a semtimedop(2) implementation that I'm using for FreeBSD. I > > was hoping someone could look it over and tell me i

Re: Pls sanity check my semtimedop(2) implementation

2008-07-17 Thread Michael B Allen
On Thu, Jul 17, 2008 at 10:05 AM, John Baldwin <[EMAIL PROTECTED]> wrote: > On Saturday 12 July 2008 07:11:26 pm Michael B Allen wrote: >> Hi, >> >> Below is a semtimedop(2) implementation that I'm using for FreeBSD. I >> was hoping someone could look

Re: Pls sanity check my semtimedop(2) implementation

2008-07-17 Thread Michael B Allen
On Thu, Jul 17, 2008 at 8:15 PM, John Baldwin <[EMAIL PROTECTED]> wrote: > On Thursday 17 July 2008 01:42:31 pm Michael B Allen wrote: >> On Thu, Jul 17, 2008 at 10:05 AM, John Baldwin <[EMAIL PROTECTED]> wrote: >> > On Saturday 12 July 2008 07:11:26 pm M

Re: Pls sanity check my semtimedop(2) implementation

2008-07-30 Thread Michael B Allen
On Fri, Jul 18, 2008 at 11:58 AM, Jilles Tjoelker <[EMAIL PROTECTED]> wrote: > On Sat, Jul 12, 2008 at 07:11:26PM -0400, Michael B Allen wrote: >> Below is a semtimedop(2) implementation that I'm using for FreeBSD. I >> was hoping someone could look it over and

Re: Idea for FreeBSD

2008-08-06 Thread Michael B Allen
On Wed, Aug 6, 2008 at 7:14 PM, <[EMAIL PROTECTED]> wrote: > To who it may concern, > > I am A FreeBSD administrator as well as a Solaris Administrator. I use > BSD at home but Solaris at work. I love both OS's but I would like to > increase the administrative capability of FreeBSD. > > In Sol

Re: Idea for FreeBSD

2008-08-06 Thread Michael B Allen
On Thu, Aug 7, 2008 at 1:06 AM, Mike Meyer <[EMAIL PROTECTED]> wrote: > On Wed, 6 Aug 2008 22:34:51 -0400 > "Michael B Allen" <[EMAIL PROTECTED]> wrote: >> As for getting rid of rc.d scripts, yes they're decrepit and I would >> love to see them go bu

Path to executable of current process?

2007-07-19 Thread Michael B Allen
Hello, I'm looking for an example that uses kvm_getargv but from just googling around I can't seem to find an example. Can someone give me a pointer? Actually what I'm *really* trying to do is port some code that invokes GDB to do a backtrace and I need to give GDB the path to the executable of

Re: Path to executable of current process?

2007-07-19 Thread Michael B Allen
On 7/19/07, Michael B Allen <[EMAIL PROTECTED]> wrote: Hello, I'm looking for an example that uses kvm_getargv but from just googling around I can't seem to find an example. Can someone give me a pointer? Actually what I'm *really* trying to do is port some code tha

Re: Path to executable of current process?

2007-07-19 Thread Michael B Allen
Is there any way to get argv[0] for [a particular] process without being root? After more digging I see sysctl seems to be the way to do this but can I get the full path to the executable form kinfo_proc? How does ps do this? static const char * getcmdline(pid_t pid) { static struct kinfo_p

Get pid of child that has exited?

2007-07-20 Thread Michael B Allen
Hello, How does one get the pid if a child process that has exited? On other systems this is available in siginfo_t but si_pid seems to be 0. Is that normal? Mike ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/fr

Re: Get pid of child that has exited?

2007-07-20 Thread Michael B Allen
On 7/20/07, Michael B Allen <[EMAIL PROTECTED]> wrote: Hello, How does one get the pid if a child process that has exited? On other systems this is available in siginfo_t but si_pid seems to be 0. Is that normal? Nevermind. I see siginfo_t isn't portable. I'm using wa

timers and semtimedop(2)

2007-11-01 Thread Michael B Allen
Hi, I need semtimedop(2). I'm thinking I can just do a semop with a SIGINT maybe. Can someone suggest a good method for setting up a timer to deliver the signal? What sort of timers does FreeBSD offer? Thanks, Mike -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.iople

Re: timers and semtimedop(2)

2007-11-01 Thread Michael B Allen
On 11/1/07, Peter Jeremy <[EMAIL PROTECTED]> wrote: > On Thu, Nov 01, 2007 at 01:41:10PM -0400, Michael B Allen wrote: > >I need semtimedop(2). I'm thinking I can just do a semop with a SIGINT maybe. > > I presume you mean SIGALRM. > > >Can someone suggest a go