Pollution encore

darcs-hash:20040214192519-41617-63587e2a7eaa5b8f0737ebf99d99a54d460ce329.gz
This commit is contained in:
pauget 2004-02-14 20:25:19 +01:00
parent cf31c7ef74
commit f7556e1e87

View file

@ -235,17 +235,13 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost):
# Obtention du real user => signature automatique des commits
ppid=os.getpid()
print ppid
print os.getppid()
os.system('env')
os.system('ps auxww -o ppid,pid,user')
os.system('ps auxww')
while user=='root' :
ppid,user = string.split(string.strip(os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines()[0]))
if ppid=='1' :
# C'est init, l'user est donc bien root
print os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines()
break
sys.exit(0)
domain = fromhost or getfqdn()
#Modif cosmétique pour afficher un sujet explicite :
host = string.split(domain,'.')