Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Aug 2004 00:01:42 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        ravi <ravi.nanjundappa@ap.sony.com>
Cc:        Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
Subject:   Re: Regarding writing to /proc entries
Message-ID:  <20040804050142.GB85344@dan.emsphone.com>
In-Reply-To: <1091592485.4760.1.camel@ravin>
References:  <Pine.NEB.3.96L.1040803110533.83843A-100000@fledge.watson.org> <1091592485.4760.1.camel@ravin>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 04), ravi said:
> I tried with echo -n as well . But even then the same error messge is
> coming . Please tell me the solution .

For the 'note' case, a look at the source makes it clear that it has never
been implemented.  The manpage also mentions it:

     note    Used for sending signals to the process.  Not implemented.

For 'ctl', your example is invalid.  At least on my system, process 2 is a
kernel thread.  Try with a real userland process, and note that you cannot
trace yourself (so "echo attach > /proc/$$/ctl" will fail).  For a better
ptrace interface, take a look at the ptrace() syscall.  Use of procfs is
discouraged.

> > On Tue, 3 Aug 2004, ravi wrote:
> > > 	echo attach > /proc/2/ctl

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040804050142.GB85344>