Re: [Toybox] netcat -f bug

2024-05-16 Thread Yi-Yo Chiang via Toybox
The nodes under /dev/pts/ are allocated on demand, so there isn't a fixed pts/number. When a process opens /dev/ptmx (controlling end), a /dev/pts/ node would be allocated. Another process can then open the pts end and communicate with the controlling end. What my test is doing is to just open a

Re: [Toybox] netcat -f bug

2024-05-16 Thread Yi-Yo Chiang via Toybox
On Thu, May 16, 2024 at 1:12 AM enh wrote: > On Sat, May 11, 2024 at 3:12 AM Yi-Yo Chiang via Toybox > wrote: > > > > > > > > On Sat, May 11, 2024 at 1:30 AM Rob Landley wrote: > >> > >> What's your use case triggering this patch? Because without that, I go > off on > >> various design

Re: [Toybox] netcat -f bug

2024-05-15 Thread Rob Landley
On 5/11/24 02:11, Yi-Yo Chiang wrote: > On Sat, May 11, 2024 at 1:30 AM Rob Landley > wrote: > > What's your use case triggering this patch? Because without that, I go > off on > various design tangents, as seen below: > > I just wanted some tool to communicate

Re: [Toybox] netcat -f bug

2024-05-15 Thread enh via Toybox
On Sat, May 11, 2024 at 3:12 AM Yi-Yo Chiang via Toybox wrote: > > > > On Sat, May 11, 2024 at 1:30 AM Rob Landley wrote: >> >> What's your use case triggering this patch? Because without that, I go off on >> various design tangents, as seen below: > > > I just wanted some tool to communicate

Re: [Toybox] netcat -f bug

2024-05-12 Thread Yi-Yo Chiang via Toybox
This is the updated patch. On Sat, May 11, 2024 at 3:11 PM Yi-Yo Chiang wrote: > > > On Sat, May 11, 2024 at 1:30 AM Rob Landley wrote: > >> What's your use case triggering this patch? Because without that, I go >> off on >> various design tangents, as seen below: >> > > I just wanted some

Re: [Toybox] netcat -f bug

2024-05-11 Thread Yi-Yo Chiang via Toybox
On Sat, May 11, 2024 at 1:30 AM Rob Landley wrote: > What's your use case triggering this patch? Because without that, I go off > on > various design tangents, as seen below: > I just wanted some tool to communicate with a pty or socket node on android. Wanted a program to be able to send/recv

Re: [Toybox] netcat -f bug

2024-05-10 Thread Rob Landley
What's your use case triggering this patch? Because without that, I go off on various design tangents, as seen below: On 5/10/24 06:09, Yi-Yo Chiang via Toybox wrote: > Hi, > The -f option for netcat doesn't seem to be doing anything right now. I should have a test for that, but to be honest I

[Toybox] netcat -f bug

2024-05-10 Thread Yi-Yo Chiang via Toybox
Hi, The -f option for netcat doesn't seem to be doing anything right now. It is missing a call to pollinate() after opening the specified device file. The patch adds back that line of pollinate(). Also make sure that the timeout handler is not armed for -f mode as -f shouldn't timeout. File open()