A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-August/068045.html below:

[Python-Dev] should i put this on the bug tracker ?

[Python-Dev] should i put this on the bug tracker ?Bart Thate bart at r8.cg.nu
Tue Aug 8 15:39:32 CEST 2006
hello python-dev,

the following code hangs on FreeBSD 6.1-STABLE,
Python 2.5b3 (r25b3:51041, Aug 5 2006, 20:46:57)

$ cat pythontest
#!/usr/local/bin/python2.5

import os, thread, time, sys

def reboot():
    print 'reboot'
    os.execl(sys.argv[0], sys.argv[0])

thread.start_new_thread(reboot, ())

while 1:
    time.sleep(1)


works fine on python2.4

is this a bug or is it something i "should not do" ?

Bart
-------------- next part --------------
#!/usr/local/bin/python2.5

import os, thread, time, sys

def reboot():
    print 'reboot'
    os.execl(sys.argv[0], sys.argv[0])

thread.start_new_thread(reboot, ())

while 1:
    time.sleep(1)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4