Re: ptrace and pseudoterminals

2015-11-18 Thread Pavel Labath
On 5 November 2015 at 20:29, Peter Hurley wrote: > On 11/05/2015 01:35 PM, Pavel Labath wrote: >> That said, it seems to me that this could be a generally useful >> feature. For the test suite, I can insert a sleep (even a large one, >> to be sure), but this seems like a sub-optimal solution for

Re: ptrace and pseudoterminals

2015-11-18 Thread Pavel Labath
On 5 November 2015 at 20:29, Peter Hurley wrote: > On 11/05/2015 01:35 PM, Pavel Labath wrote: >> That said, it seems to me that this could be a generally useful >> feature. For the test suite, I can insert a sleep (even a large one, >> to be sure), but this seems like a

Re: ptrace and pseudoterminals

2015-11-05 Thread Peter Hurley
On 11/05/2015 01:35 PM, Pavel Labath wrote: > On 5 November 2015 at 05:25, Peter Hurley wrote: >> On 11/04/2015 02:43 PM, Oleg Nesterov wrote: >>> Oh, I don't think "Automagically if ptrace" makes any sense... What makes >>> ptrace special? Afaics nothing. >>> >>> We can modify this test-case to

Re: ptrace and pseudoterminals

2015-11-05 Thread Pavel Labath
On 5 November 2015 at 05:25, Peter Hurley wrote: > On 11/04/2015 02:43 PM, Oleg Nesterov wrote: >> Oh, I don't think "Automagically if ptrace" makes any sense... What makes >> ptrace special? Afaics nothing. >> >> We can modify this test-case to use signals/futexes/whatever to let the >> the

Re: ptrace and pseudoterminals

2015-11-05 Thread Peter Hurley
On 11/04/2015 02:43 PM, Oleg Nesterov wrote: > On 11/04, Peter Hurley wrote: >> >> Hi Pavel, >> >> On 11/03/2015 06:16 PM, Pavel Labath wrote: >>> Hello Oleg, everyone, >>> >>> I have noticed something, which may be considered a race in the >>> interaction of ptrace and pseudoterminal interfaces.

Re: ptrace and pseudoterminals

2015-11-05 Thread Pavel Labath
On 5 November 2015 at 05:25, Peter Hurley wrote: > On 11/04/2015 02:43 PM, Oleg Nesterov wrote: >> Oh, I don't think "Automagically if ptrace" makes any sense... What makes >> ptrace special? Afaics nothing. >> >> We can modify this test-case to use

Re: ptrace and pseudoterminals

2015-11-05 Thread Peter Hurley
On 11/05/2015 01:35 PM, Pavel Labath wrote: > On 5 November 2015 at 05:25, Peter Hurley wrote: >> On 11/04/2015 02:43 PM, Oleg Nesterov wrote: >>> Oh, I don't think "Automagically if ptrace" makes any sense... What makes >>> ptrace special? Afaics nothing. >>> >>> We can

Re: ptrace and pseudoterminals

2015-11-05 Thread Peter Hurley
On 11/04/2015 02:43 PM, Oleg Nesterov wrote: > On 11/04, Peter Hurley wrote: >> >> Hi Pavel, >> >> On 11/03/2015 06:16 PM, Pavel Labath wrote: >>> Hello Oleg, everyone, >>> >>> I have noticed something, which may be considered a race in the >>> interaction of ptrace and pseudoterminal interfaces.

Re: ptrace and pseudoterminals

2015-11-04 Thread Oleg Nesterov
On 11/04, Peter Hurley wrote: > > Hi Pavel, > > On 11/03/2015 06:16 PM, Pavel Labath wrote: > > Hello Oleg, everyone, > > > > I have noticed something, which may be considered a race in the > > interaction of ptrace and pseudoterminal interfaces. Basically, what > > happens is this: > > - we have

Re: ptrace and pseudoterminals

2015-11-04 Thread Peter Hurley
Hi Pavel, On 11/03/2015 06:16 PM, Pavel Labath wrote: > Hello Oleg, everyone, > > I have noticed something, which may be considered a race in the > interaction of ptrace and pseudoterminal interfaces. Basically, what > happens is this: > - we have two processes: A and B. B has the slave end of

Re: ptrace and pseudoterminals

2015-11-04 Thread Peter Hurley
Hi Pavel, On 11/03/2015 06:16 PM, Pavel Labath wrote: > Hello Oleg, everyone, > > I have noticed something, which may be considered a race in the > interaction of ptrace and pseudoterminal interfaces. Basically, what > happens is this: > - we have two processes: A and B. B has the slave end of

Re: ptrace and pseudoterminals

2015-11-04 Thread Oleg Nesterov
On 11/04, Peter Hurley wrote: > > Hi Pavel, > > On 11/03/2015 06:16 PM, Pavel Labath wrote: > > Hello Oleg, everyone, > > > > I have noticed something, which may be considered a race in the > > interaction of ptrace and pseudoterminal interfaces. Basically, what > > happens is this: > > - we have

ptrace and pseudoterminals

2015-11-03 Thread Pavel Labath
Hello Oleg, everyone, I have noticed something, which may be considered a race in the interaction of ptrace and pseudoterminal interfaces. Basically, what happens is this: - we have two processes: A and B. B has the slave end of the pty open, A has the master. A is tracing B. - B writes some data

ptrace and pseudoterminals

2015-11-03 Thread Pavel Labath
Hello Oleg, everyone, I have noticed something, which may be considered a race in the interaction of ptrace and pseudoterminal interfaces. Basically, what happens is this: - we have two processes: A and B. B has the slave end of the pty open, A has the master. A is tracing B. - B writes some data