~ubuntu-branches/ubuntu/natty/kdebase-workspace/natty-proposed

« back to all changes in this revision

Viewing changes to libs/ksysguard/processcore/processes_dragonfly_p.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2011-04-03 16:54:55 UTC
  • mfrom: (1.1.55 upstream)
  • Revision ID: james.westby@ubuntu.com-20110403165455-8tnwxt82p21p15hh
Tags: 4:4.6.2a-0ubuntu1
* New upstream release
  - Update kde-sc-dev-latest version
  - Update kdebase-workspace-wallpapers.install,
    kde-window-manager.install and not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
{
77
77
    process->setUid(0);
78
78
    process->setGid(0);
79
 
    process->setTracerpid(0);
 
79
    process->setTracerpid(-1);
80
80
 
81
81
    process->setEuid(PP(p, uid));
82
82
    process->setUid(PP(p, ruid));
145
145
 
146
146
long ProcessesLocal::getParentPid(long pid)
147
147
{
148
 
    long long ppid = 0;
 
148
    long long ppid = -1;
149
149
    struct kinfo_proc p;
150
150
 
151
151
    if(d->readProc(pid, &p))
198
198
        long long ppid = PP((&p[num]), ppid);
199
199
 
200
200
        //skip all process with parent id = 0 but init
201
 
        if(ppid == 0 && pid != 1)
 
201
        if(ppid <= 0 && pid != 1)
202
202
            continue;
203
203
        pids.insert(pid);
204
204
    }