This is a discussion on funny problem with process names within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> this is what i get when i type... ps -Al 1 S 0 3 1 0 75 -5 - ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| this is what i get when i type... ps -Al 1 S 0 3 1 0 75 -5 - 0 worker ? 00:00:00 events/0 4 S 0 779 1 0 76 -4 - 372 - ? 00:00:00 udevd 5 S 0 2396 1 0 80 0 - 379 - ? 00:00:00 inetd 5 S 0 2406 1 0 80 0 - 1330 - ? 00:00:29 3 1 S 0 2449 1 0 80 0 - 480 - ? 00:00:01 3 1 S 0 2452 1 0 80 0 - 639 - ? 00:00:00 3 (trimmed) seenow, those "3" processes are actually stuff like named, ulogd, dhcpd... revealed by "ps aux" for example (which shows full paths not process name) the thing is, ps -Al and killall search process names in /proc/$PID/stat between (). and its wrongly there. tried with last couple of 2.6 kernels, and not too sure its kernel fault. so any ideas why /proc/$PID/stat gives process name as "3" and not "dhcpd" for example? |
| |||
| On Sun, 26 Mar 2006 04:32:19 +0200, Mad-Eye Moody <zhillaREMOVEBRA@spymac.com> wrote: >this is what i get when i type... >ps -Al >1 S 0 3 1 0 75 -5 - 0 worker ? 00:00:00 events/0 >4 S 0 779 1 0 76 -4 - 372 - ? 00:00:00 udevd >5 S 0 2396 1 0 80 0 - 379 - ? 00:00:00 inetd >5 S 0 2406 1 0 80 0 - 1330 - ? 00:00:29 3 >1 S 0 2449 1 0 80 0 - 480 - ? 00:00:01 3 >1 S 0 2452 1 0 80 0 - 639 - ? 00:00:00 3 >(trimmed) >seenow, those "3" processes are actually stuff like named, ulogd, dhcpd... >revealed by "ps aux" for example (which shows full paths not process name) >the thing is, ps -Al and killall search process names in /proc/$PID/stat >between (). and its wrongly there. >tried with last couple of 2.6 kernels, and not too sure its kernel fault. >so any ideas why /proc/$PID/stat gives process name as "3" and not >"dhcpd" for example? ~# ps -Al F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S 0 1 0 0 68 0 - 150 select ? 00:00:03 init 1 S 0 2 1 0 69 0 - 0 contex ? 00:00:00 keventd .... 0 S 0 18775 1 0 69 0 - 9656 pipe_w ? 00:00:30 ip2c-server 0 S 1000 18832 18483 0 69 0 - 610 wait4 pts/1 00:00:00 rsync-slack 0 S 1000 18833 18832 0 69 0 - 710 select pts/1 00:00:02 rsync 1 S 1000 18834 18833 0 69 0 - 771 select pts/1 00:00:29 rsync 4 R 0 19115 182 0 73 0 - 1589 - ? 00:00:53 sshd 4 S 0 19118 19115 0 70 0 - 717 wait4 pts/2 00:00:01 bash 4 R 0 19448 19118 15 77 0 - 639 - pts/2 00:00:00 ps Not happen here on 2.4.32+hf You running any security extras? Grant. -- WinXP: Access Start->Turn Off Computer, then while holding Ctrl-Alt-Shift, left click on Cancel. This terminates Windows Explorer... |
| ||||
| On Sun, 26 Mar 2006 18:51:26 +0200, Mad-Eye Moody wrote: >> Not happen here on 2.4.32+hf You running any security extras? > nope. should i try to? problem solved. and i'm a retard. i had a briliant idea to reduce boot time, by upx-ing bigger binaries that start on boot (wifi router machine with old and slow hard drive). those binaries were the ones displaying wrong process names. /usr/sbin/named for example. which lead to problems, such being unable to stop/restart service using /etc/rc.d/rc.service stop/restart. now, i also repacked those binaries using new 1.94 beta of upx. it works flawlessly. |
| Thread Tools | |
| Display Modes | |
|
|