bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] forkpty, openpty: split functions into new modules


From: Simon Josefsson
Subject: Re: [PATCH 2/3] forkpty, openpty: split functions into new modules
Date: Fri, 19 Mar 2010 10:07:38 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

I like these changes -- I think I mentioned that approach earlier when
adding the pty module, but before we had replacement functions for
forkpty/openpty in progress, the separation is kind of unnecessary.
Let's hope we'll have replacement functions soon after this.  Feel free
to push your changes.

>> I don't understand two things here:
>>   - Why does 'forkpty' depend on 'openpty'?
>
> I guess it doesn't have to.  It's just that for now, test-forkpty.c
> tests both interfaces.

It may be cleanest to split the test modules too, so there is one
test-forkpty.c and test-openpty.c.

>>   - Since forkpty.m4 is used for both 'forkpty' and 'openpty', it is 
>> asymetric
>>     and a bit misleading to call it 'forkpty.m4'. Why not call it 'pty.m4'?
>
> Sure; I named it forkpty.m4 to avoid confusion with the fact that I just
> renamed pty.m4 -> pty_h.m4 in the previous patch.  But pty.m4 for both
> forkpty and openpty makes sense.  I'll post a respin of the patches,
> incorporating your comments, and restart the review clock.

Thanks,
Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]