From owner-freebsd-hackers@FreeBSD.ORG Mon May 23 11:58:31 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C90416A41F for ; Mon, 23 May 2005 11:58:31 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0414D43D1F for ; Mon, 23 May 2005 11:58:30 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so795106rne for ; Mon, 23 May 2005 04:58:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IjHrbyJHSJhegjy3LQfFN76l3a9uIcNraOCRaQmOQ5MZ4INeTcYZ3iFZc2bIFpP5k576Iij/UIxighs5/+5lbGAvVQ1mc3ZVkZSAaIT1MSFbfre39vVYwE63CKeXhuN/bCfC6Z38zzL7jlO6REe322tGjZPkeMlEYGTQmiShIqA= Received: by 10.38.101.64 with SMTP id y64mr3106155rnb; Mon, 23 May 2005 04:58:30 -0700 (PDT) Received: by 10.38.209.31 with HTTP; Mon, 23 May 2005 04:58:30 -0700 (PDT) Message-ID: <84dead7205052304585ac4190@mail.gmail.com> Date: Mon, 23 May 2005 17:28:30 +0530 From: Joseph Koshy To: "gowtham@despammed.com" In-Reply-To: <200505231108.j4NB8Tk29037@mailout.despammed.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200505231108.j4NB8Tk29037@mailout.despammed.com> Cc: freebsd-hackers@freebsd.org Subject: Re: (no subject) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joseph Koshy List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2005 11:58:31 -0000 > 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