vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On 08/05/08 15:17 +0200, Hannah Schroeter wrote: > I was advised that my earlier response might feel offensive to some, > perhaps you too. If so, I apologize for it. I didn't meen to offend, but > to be humorous, but probably I failed. Actually, the man who should apologize is ME. Because, in my test code, I just find I forgot to let the master process wait for the slave's exec(3), so the signal may arrive ahead of the exec(3) of the program in the slave pty sometimes. When using read(2) on the master pty before ioctl-ing the signal, I think read(2) will block until it got some output from the slave, which assures the execution of the program in slave pty, then the signal can be caught by the invoked program. After adding some sleep seconds in master process before the ioctl, the TIOCSIG signal works fine. Sorry for my inadvertent and thanks for your time. -- Dasn |