need help with sigaction and siginfo_t

2007-11-17 Thread nikita kozlov
hello, I'm a student and we are working on FreeBSD. My problem is i don't understand how to use SA_SIGINFO and siginfo_t. The following code caught my SIGUSR1 with a "kill -30 my_server_pid" from my shell. but siginfo_t is empty when i'm debugging my program with gdb. my output is : > pid 0 and in

Re: How to get filename of an open file descriptor

2007-11-17 Thread Bjoern A. Zeeb
On Fri, 16 Nov 2007, Skip Ford wrote: Hi, How about renaming procstat(1) to proc(1), rolling up all of calling it proc(1), I think, is actually not a good idea either. That is way more confusing for people who still think about /proc and do not know the difference between (1) or (4). I like

Re: How to get filename of an open file descriptor

2007-11-17 Thread Skip Ford
Bjoern A. Zeeb wrote: > On Fri, 16 Nov 2007, Skip Ford wrote: > > >How about renaming procstat(1) to proc(1), rolling up all of > > calling it proc(1), I think, is actually not a good idea either. That > is way more confusing for people who still think about /proc and do > not know the difference

double panic, and whats apic_cmd? (kqemu crash...)

2007-11-17 Thread Juergen Lock
Ok I finally have an amd64 smp box here that i can play with, and tried to reproduce http://www.freebsd.org/cgi/query-pr.cgi?pr=113430 - and I got the following crash: iapetus# kgdb kernel.debug /var/crash/vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefi