darcs-hash:20040214192948-41617-990c74046af2724bc5ad61cdd955e75b337e6b15.gz
This commit is contained in:
pauget 2004-02-14 20:29:48 +01:00
parent f7556e1e87
commit 86b10a19ab

View file

@ -235,7 +235,7 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost):
# Obtention du real user => signature automatique des commits
ppid=os.getpid()
print ppid
os.system('ps auxww')
os.system("ps a -o tty,ppid,pid %s" % ppid)
while user=='root' :
ppid,user = string.split(string.strip(os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines()[0]))
if ppid=='1' :