1

Why the statment inside the thread, is not working?

view story
linux-howto

http://stackoverflow.com – Button is working but the threading is not working at all. What is causing it to be failed? thread.start_new_thread(task1) this statement does not get executed. /var/tmp/p.py: import sys,os import pygtk, gtk, gobject import socket, datetime, threading import ConfigParser import urllib2 import subprocess import threading import thread # Singleton run once import fcntl, sys pid_file = '/var/tmp/program.pid' fp = open(pid_file, 'w') try: fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB) except IOError: # another instance is running sys.exit(0) # Read config file server="http://blabla" user (HowTos)