Mercurial > p > roundup > code
diff roundup/scripts/roundup_server.py @ 1409:8dc60d87ab42
Fixed a backlog of bug reports, and worked on python 2.3 compatibility:
- fixed templating filter function arguments [SF#678911]
- fixed multiselect in searching [SF#676874]
- fixed parsing of content-disposition filenames [SF#675116]
- added 'h' to roundup-server optarg list [SF#674070]
- fixed doc for db.history in anydbm and rdbms_common [SF#679221]
- fixed timelog example so it handles new issues [SF#678908]
- handle missing os.fork() [SF#681046]
- fixed roundup-reminder [SF#681042]
- fixed int assumptions about Number values [SF#677762]
- added warning filter for "FutureWarning: hex/oct constants > sys.maxint will
return positive values..." (literal 0xffff0000 in portalocker.py)
- fixed ZPT code generating SyntaxWarning for assignment to None
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 06 Feb 2003 05:43:49 +0000 |
| parents | b0d342a3548f |
| children | 79d8956de3f5 |
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py Mon Feb 03 11:14:16 2003 +0000 +++ b/roundup/scripts/roundup_server.py Thu Feb 06 05:43:49 2003 +0000 @@ -16,7 +16,7 @@ # """ HTTP Server that serves roundup. -$Id: roundup_server.py,v 1.17 2003-01-13 02:44:42 richard Exp $ +$Id: roundup_server.py,v 1.18 2003-02-06 05:43:49 richard Exp $ """ # python version check @@ -247,7 +247,7 @@ try: # handle the command-line args try: - optlist, args = getopt.getopt(sys.argv[1:], 'n:p:u:d:l:') + optlist, args = getopt.getopt(sys.argv[1:], 'n:p:u:d:l:h') except getopt.GetoptError, e: usage(str(e)) @@ -301,6 +301,10 @@ # fork? if pidfile: + if not hasattr(os, 'fork'): + print "Sorry, you can't run the server as a daemon on this" \ + 'Operating System' + sys.exit(0) daemonize(pidfile) # redirect stdout/stderr to our logfile
