KProcess: writeStdin API braindamage

Oswald Buddenhagen ossi at kde.org
Tue Mar 23 15:54:23 GMT 2004


On Tue, Mar 23, 2004 at 04:48:27PM +0100, Waldo Bastian wrote:
> Now that KProcess creates non-blocking pipes to its child processes
[again]
> it becomes clear that the semantics of the writeStdin function are
> brain dead:
>
guess why i want to merge kprocio into kprocess ...

> hardly any caller makes sure that the data that was passed stays alive
> long enough (t.i. till a wroteStdin signal arrives)
> 
> This patches corrects that, by making a local copy of the data if the
> data could not be directly written into the pipe. This fixes pasting
> large amounts of data into konsole.
> 
i don't like it. the behaviour is clearly documented; working around
usage errors will certainly lead to other problems. fix the apps
instead.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




More information about the kde-core-devel mailing list