linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Michael Richardson <mcr@sandelman.ottawa.on.ca>
Subject: Re: [uml-devel] T-mode processes
Date: Sun, 3 Oct 2004 17:04:29 +0200	[thread overview]
Message-ID: <200410031704.29051.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <29246.1096763190@marajade.sandelman.ottawa.on.ca>

On Sunday 03 October 2004 02:26, Michael Richardson wrote:
> The following seems to get rid of the processes:
>
> ps ax | grep linux | awk '{print $1;}' | while read pid
> do
>   ( strace -p $pid ) &
> done
>
> So, this tells me that kill-9 can't kill a process which is being
> strace'ed. I really think that this is a bug.
Well, you should probably try kill -CONT before doing kill -9 (i.e. -KILL). 
Actually it makes sense that strace -p *does* kill -CONT.

> We also continue to have an issue with the /proc/PID/environ file not being
> owned by the process involved.
I'm looking at the permission in your listing and in my linux, and I don't see 
anything strange. Plus, I don't understand what you mean with "a file owned 
by a certain process".

Do you mean "I start the process with uid build and /proc/PID/* has uid root 
while it should have uid build"?

If you mean this, the answer is that you seem to be starting UML with one id 
and making it run with another UID. At least, I see this permission situation 
with the X Font Server:

root # ls -la /proc/1164/
totale 0
dr-xr-xr-x    3 xfs  xfs  0 ott  3 17:03 .
dr-xr-xr-x  125 root root 0 ott  3  2004 ..
-r--r--r--    1 root root 0 ott  3 17:03 cmdline
lrwxrwxrwx    1 root root 0 ott  3 17:03 cwd -> /
-r--------    1 root root 0 ott  3 17:03 environ
lrwxrwxrwx    1 root root 0 ott  3 17:03 exe -> /usr/X11R6/bin/xfs
dr-x------    2 root root 0 ott  3 17:03 fd
-r--r--r--    1 root root 0 ott  3 17:03 maps
-rw-------    1 root root 0 ott  3 17:03 mem
-r--r--r--    1 root root 0 ott  3 17:03 mounts
lrwxrwxrwx    1 root root 0 ott  3 17:03 root -> /
-r--r--r--    1 root root 0 ott  3 17:03 stat
-r--r--r--    1 root root 0 ott  3 17:03 statm
-r--r--r--    1 root root 0 ott  3 17:03 status

> This keeps our automatic cleaner from 
> getting the processes which are strays.

Bye
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  parent reply	other threads:[~2004-10-03 15:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-03  0:26 [uml-devel] T-mode processes Michael Richardson
2004-10-03 10:41 ` Henrik Nordstrom
2004-10-03 17:26   ` Michael Richardson
2004-10-03 17:55     ` Henrik Nordstrom
2004-10-03 18:39       ` Michael Richardson
2004-10-04 18:22         ` BlaisorBlade
2004-10-04 22:40           ` Michael Richardson
2004-10-03 15:04 ` BlaisorBlade [this message]
2004-10-03 17:44   ` Michael Richardson
2004-10-04 18:57     ` BlaisorBlade
2004-10-04 20:25       ` Henrik Nordstrom
2004-10-05 18:51         ` BlaisorBlade
2004-10-06  0:00           ` Henrik Nordstrom
2004-10-06 19:45             ` BlaisorBlade
2004-10-14 16:46             ` BlaisorBlade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200410031704.29051.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=mcr@sandelman.ottawa.on.ca \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox