Summary: | Protect shells from unintentional closing them or killing important jobs | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Frank Hellmuth <fhellmuth> |
Component: | general | Assignee: | Robert Knight <robertknight> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | bluedzins, robertknight |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Frank Hellmuth
2005-01-22 23:00:16 UTC
1) There's no way of telling if a process has children processes running. Not portably, anyways. The only solution is to keep running /bin/ps and hope it has tree-like output formatting. The rest seems feasible. Perhaps doable using /proc (which is Linux 2.6.x only I think). $ dcop konsole-944 session-1 sessionPID 952 % ls /proc/952 auxv cwd@ exe@ maps mounts oom_score stat status wchan cmdline environ fd/ mem oom_adj root@ statm task/ # Find all children of 952 (I'm running kdesvn-build on session-1) % /bin/ps --ppid 952 PID TTY TIME CMD 15157 pts/3 00:00:00 kdesvn-build > There's no way of telling if a process has children processes running.
> Not portably, anyways. The only solution is to keep running /bin/ps and
> hope it has tree-like output formatting.
I wrote code to do this, and it met a few roadblocks so it was disabled. Having read this wishlist though it might be worth adding it as an option.
Seems finally implemented in the current SVN Version. Thanks, closing the bug! One less for the statistics ;) Absolutely fantastic news! Thank you all. *** Bug 159456 has been marked as a duplicate of this bug. *** |