Message8982
THREADS=8 jython start_threads
With various values for this environment variable you will see various behaviours.
With low enough values, this results in no error. (The script has no output upon successful completion.)
Sometimes:
[acharis@workstation ~]% THREADS=8 /tmp/jython2.7b3/jython start_threads
Exception in thread Thread-5:Traceback (most recent call last):
File "/tmp/jython2.7b3/Lib/threading.py", line 207, in _Thread__bootstrap
self.run()
File "start_threads", line 11, in run
os.system("cat /etc/hostname > /dev/null")
File "/tmp/jython2.7b3/Lib/subprocess.py", line 500, in call
return Popen(*popenargs, **kwargs).wait()
File "/tmp/jython2.7b3/Lib/subprocess.py", line 830, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/tmp/jython2.7b3/Lib/subprocess.py", line 1315, in _execute_child
args = _shell_command + args
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'
Other times:
AttributeError: 'module' object has no attribute 'call'
Other times:
NameError: global name 'Popen' is not defined |
|
Date |
User |
Action |
Args |
2014-09-09 18:51:47 | acharis | set | recipients:
+ acharis |
2014-09-09 18:51:47 | acharis | set | messageid: <1410288707.53.0.660987198823.issue2205@psf.upfronthosting.co.za> |
2014-09-09 18:51:47 | acharis | link | issue2205 messages |
2014-09-09 18:51:46 | acharis | create | |
|