summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorequinox <equinox@diac24.net>2011-09-30 01:37:58 +0200
committerequinox <equinox@diac24.net>2011-09-30 01:37:58 +0200
commitff8df62dfad7aa990254914400fe57a3bebbe163 (patch)
tree95c807e4318350c63b274fc962d4e3fb2350d515
parent6eeadd3e2f7c0ce30810eea1539844005c2d123c (diff)
remove fork
-rwxr-xr-xindex.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/index.py b/index.py
index 42862ab..6b68057 100755
--- a/index.py
+++ b/index.py
@@ -127,9 +127,7 @@ class SubdapSite(object):
return render(errors = errors, username = username)
accountservice.name_create(username, password)
- if os.fork() == 0:
- accountservice.kprop()
- os._exit(0)
+ accountservice.kprop()
return s.login(username, password)
@expose('pwchange.html')
@@ -151,9 +149,7 @@ class SubdapSite(object):
except kerberos.PwdChangeError, e:
return render(errors = {'password2': unicode(e[0])}, username = username)
- if os.fork() == 0:
- accountservice.kprop()
- os._exit(0)
+ accountservice.kprop()
return s.selectpage(l, dn, {'pwchangeok': True})