Re: Locking a running process
Mark Mackey <[email protected]> Wed, 23 May 2007 09:31:14 +0100
| Newsgroups | gmane.linux.cluster.openmosix.general |
|---|---|
| Message-ID | <[email protected]> |
Jürgen Knödlseder wrote: > I tried to lock the process using >echo 1 > /proc/PID/lock >but when I check /proc/PID/lock using "more" I always find a 0 in >there ... > Only the process itself can lock itself i.e. you can do 'echo 1 > /proc/$$/lock', but only process 1234 can do 'echo 1 > /proc/1234/lock'. No, I can't see a good reason for this behaviour either. -- Dr Mark Mackey Director, Development Cresset Biomolecular Discovery Ltd ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/