<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>37592</bug_id>
          
          <creation_ts>2004-01-08 04:55 0000</creation_ts>
          <short_desc>Allow usage of distccmon as user to watch over portage compiling</short_desc>
          <delta_ts>2004-01-09 09:32:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Development</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>e.bachmann@xebec.de</reporter>
          <assigned_to>lisa@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>e.bachmann@xebec.de</who>
            <bug_when>2004-01-08 04:55:22 0000</bug_when>
            <thetext>My user account is in group portage, so it has access to the .distcc dir used by portage, yet I still can&apos;t use distccmon-* to watch over it.

The problem is that it does a check for orphaned processes using the kill syscall, but doesn&apos;t check the return value correctly.

I reported this bug to the distcc-mailing list, but they don&apos;t seem to be very interrested, so maybe you could add this one-line patch to the distcc ebuild.


Reproducible: Always
Steps to Reproduce:
1. emerge something (FEATURES=distcc...)
2. try to run DISTCC_TMPDIR=/var/tmp/portage/.distcc distccmon-text 1
3. run the same under strace to clearly see the bug. (kill-syscalls failing with EPERM)

Actual Results:  
distccmon doesn&apos;t display any info as it regards every process as dead. 

Expected Results:  
It should display something :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>e.bachmann@xebec.de</who>
            <bug_when>2004-01-08 04:57:23 0000</bug_when>
            <thetext>Created an attachment (id=23378)
patch to add missing check for errno==EPERM

One-line patch to src/mon.c that fixes the bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lisa@gentoo.org</who>
            <bug_when>2004-01-08 17:34:25 0000</bug_when>
            <thetext>When Martin releases 2.12.1 I&apos;ll see if he put this patch into the code. If not I&apos;ll apply it and mark it ~arch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lisa@gentoo.org</who>
            <bug_when>2004-01-09 09:32:31 0000</bug_when>
            <thetext>2.12.1 addresses this.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>23378</attachid>
            <date>2004-01-08 04:57 0000</date>
            <desc>patch to add missing check for errno==EPERM</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <data encoding="base64">KioqIG1vbi5jLm9yaWcgIDIwMDQtMDEtMDQgMTY6NDg6MTEuNDY2NDc5MDk2ICswMTAwCi0tLSBt
b24uYyAgICAgICAyMDA0LTAxLTA0IDE2OjUzOjA3Ljg2MzIyMDIzNiArMDEwMAoqKioqKioqKioq
KioqKioKKioqIDE2NSwxNzcgKioqKgogIC8qKgogICAqIENoZWNrIHRoYXQgdGhlIHByb2Nlc3Mg
bmFtZWQgYnkgdGhlIGZpbGUgc3RpbGwgZXhpc3RzOyBpZiBub3QsCiAgICogcmV0dXJuIEVYSVRf
R09ORS4KICAgKiovCiAgc3RhdGljIGludCBkY2NfbW9uX2NoZWNrX29ycGhhbnMoc3RydWN0IGRj
Y19oaXN0b3J5ICptb25sKQogIHsKISAgICAgcmV0dXJuIGtpbGwobW9ubC0+Y3BpZCwgMCkgPyBF
WElUX0dPTkUgOiAwOwogIH0KCi0tLSAxNjUsMTc3IC0tLS0KICAvKioKICAgKiBDaGVjayB0aGF0
IHRoZSBwcm9jZXNzIG5hbWVkIGJ5IHRoZSBmaWxlIHN0aWxsIGV4aXN0czsgaWYgbm90LAogICAq
IHJldHVybiBFWElUX0dPTkUuCiAgICoqLwogIHN0YXRpYyBpbnQgZGNjX21vbl9jaGVja19vcnBo
YW5zKHN0cnVjdCBkY2NfaGlzdG9yeSAqbW9ubCkKICB7CiEgICAgIHJldHVybiAoa2lsbChtb25s
LT5jcGlkLCAwKSAmJiBlcnJubyAhPSBFUEVSTSkgPyBFWElUX0dPTkUgOiAwOwogIH0K
</data>        

          </attachment>
    </bug>

</bugzilla>