I was hoping it could be committed as is (minus the printf() and fflush() calls, which were just me debugging). Sorry I don't have a lot of spare time to dig into the code for at least a week or two.
I tested it myself in Windows 7 and the trunk code a few weeks ago and it did what I wanted. su-v did the same on mac os x.
I don't plan to modify it further unless someone either discovers a bug or provides a better way to solve the problem.
I was hoping it could be committed as is (minus the printf() and fflush() calls, which were just me debugging). Sorry I don't have a lot of spare time to dig into the code for at least a week or two.
I tested it myself in Windows 7 and the trunk code a few weeks ago and it did what I wanted. su-v did the same on mac os x.
I don't plan to modify it further unless someone either discovers a bug or provides a better way to solve the problem.