rexec works strange...

Ivan idivanov at hotmail.com
Wed Jun 20 05:25:33 EDT 2001


The following code shows it is possible
to exit a process from rexec code - 
is this a bug in python rexec module? 
Is there a fix? 

D:\>python
Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import sys;
>>> import rexec;
>>> restr_eng   =rexec.RExec(None, 1);
>>> restr_eng   .r_exec("print 1111111");
1111111
>>> restr_eng   .r_exec("import sys; sys.exit(0)");

D:\>



More information about the Python-list mailing list