Date: Mon, 23 May 2005 17:28:30 +0530 From: Joseph Koshy <joseph.koshy@gmail.com> To: "gowtham@despammed.com" <gowtham@despammed.com> Cc: freebsd-hackers@freebsd.org Subject: Re: (no subject) Message-ID: <84dead7205052304585ac4190@mail.gmail.com> In-Reply-To: <200505231108.j4NB8Tk29037@mailout.despammed.com> References: <200505231108.j4NB8Tk29037@mailout.despammed.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> How can I get the process_id of a process when I've the=20 > process_name from within a C program? Also can the command You could look at the way its done in "src/usr.bin/killall/killall.c", or read the manual page for kvm_getprocs(3). > kill (pid, SIGCONT) be used to restart a dead daemon process SIGCONT can only resume existing processes that are stopped. --=20 FreeBSD Volunteer, http://people.freebsd.org/~jkoshy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84dead7205052304585ac4190>