16 Jun
2003
16 Jun
'03
3:31 p.m.
On Wed, 11 Jun 2003 01:50:55 +0200 (CEST), Christopher Arndt wrote:
child = fork() if child == 0:
...
elif child == -1: print "Error: fork() failed!" _exit(1)
Sorry, falls das jemand schon gepostet hat, aber Pythons os.fork() wirft eine Exception im Fehlerfall. Der Code ist mithin falsch, korrekter sieht's so aus: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012 Ciao, Jürgen -- Jürgen Hermann, Developer WEB.DE AG, http://webde-ag.de/ _______________________________________________ Python-de maillist - Python-de@python.net http://python.net/mailman/listinfo/python-de