[llvm-commits] CVS: llvm-www/releases/register.cgi
John Criswell
criswell at cs.uiuc.edu
Thu Dec 18 11:36:01 PST 2003
Changes in directory llvm-www/releases:
register.cgi updated: 1.7 -> 1.8
---
Log message:
Added logging support.
---
Diffs of the changes: (+13 -0)
Index: llvm-www/releases/register.cgi
diff -u llvm-www/releases/register.cgi:1.7 llvm-www/releases/register.cgi:1.8
--- llvm-www/releases/register.cgi:1.7 Tue Dec 16 15:06:04 2003
+++ llvm-www/releases/register.cgi Thu Dec 18 11:35:09 2003
@@ -10,6 +10,9 @@
# List of email addresses that want to know when people download
notifylist=['vadve at cs.uiuc.edu', 'criswell at uiuc.edu', 'sabre at nondot.org']
+# Full pathname of the logfile
+logfilename='/var/tmp/LLVMDownloads'
+
#
# Function: Subscribe()
#
@@ -144,6 +147,16 @@
except:
pass
mailer.quit ()
+
+ #
+ # Open the logfile, lock it, and write a new entry.
+ #
+ logfile = file (logfilename, 'a')
+ fcntl.lockf (logfile, fcntl.LOCK_EX)
+ logfile.write (email + ':' + lastname + ':' + firstname + '\n')
+ logfile.flush ()
+ logfile.close ()
+
return
#
More information about the llvm-commits
mailing list