Pollution encore
darcs-hash:20040214192519-41617-63587e2a7eaa5b8f0737ebf99d99a54d460ce329.gz
This commit is contained in:
parent
cf31c7ef74
commit
f7556e1e87
1 changed files with 1 additions and 5 deletions
6
syncmail
6
syncmail
|
@ -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,'.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue