expect problem
I have attached a test program demonstrating a problem that I have with expect.
I type the following:open_init_pty ./testit
The result I desire is that the command "sleep 100" is running in the background. However sleep doesn't seem to get run.
I can't determine the exact cause of the problem because all methods of tracing it (strace etc) stop it occurring).
Putting a "sleep 1" at the end of the testit script will solve the problem, however when dealing with daemon startup scripts this isn't an option.
Due to this problem some daemons (such as kdm) can't be started from an administrator command shell. So we'll have wither solve this or back out the initrc_devpts_t changes before the next release. :(
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page