Commits

Anonymous committed a10d31f

add debug, use waitpid

Comments (0)

Files changed (1)

Demo/stdwin/jukebox.py

 
 class struct: pass		# Class to define featureless structures
 
-G = struct()			# oHlds writable global variables
+G = struct()			# Holds writable global variables
 
 
 # Main program
 		elif optname == '-t':
 			G.mode = optarg
 	#
+	if G.debug:
+		for name in G.__dict__.keys():
+			print 'G.' + name, '=', `G.__dict__[name]`
+	#
 	if not args:
 		args = [DEF_DB]
 	#
 		waitchild(0)
 
 def waitchild(options):
-	pid, sts = os.wait(G.busy, options)
+	pid, sts = os.waitpid(G.busy, options)
 	if pid == G.busy:
 		G.busy = 0
 		G.stop.enable(0)