Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!cs.ubc.ca!ubc-cs!psmith From: psmith@cs.ubc.ca (Peter Smith) Newsgroups: comp.unix.bsd.freebsd.misc Subject: /proc usage problems Date: 18 Sep 1995 22:53:24 GMT Organization: University of British Columbia, Vancouver, B.C., Canada Lines: 17 Distribution: world Message-ID: <43kt94$lgd@nnrp.cs.ubc.ca> NNTP-Posting-Host: cascade.cs.ubc.ca I'm wondering if anybody has any sample code that demonstrates how to use the /proc file system to control a process. I'm running FreeBSD version 2.0.5 on a Pentium. What I'm trying to do is stop and restart a process by writing commands to /proc/<pid>/ctl. I think I've found a bug in the procfs code (I've examined the source code), but on the other hand, I might just be using it incorrectly. I tried looking at 'gdb', without much success, and 'trace' doesn't appear to exist. Please email any suggestions directly to psmith@cs.ubc.ca Thanks, Peter.