kprocess/transferjob problem

Alexander Neundorf neundorf at
Sun Jul 6 01:15:14 BST 2003


I have the following problem: I get data froma transferjob and want to feed it 
into stdin of a kprocess. I tried to simply call process->writeStdin() 
whenever I get the data() signal from the job, but the writing doesn't always 
succeed, I guess the data comes faster than the kprocess consumes it.
The simplest solution would be if the writing would be blocking.

Is there another way ? Do I have to copy each qbytearray which I receive from 
the data() signal and put it in a queue and process the qbytearrays from this 
queue whenever I get the wroteStdin() signal from the kprocess ?

Work: alexander.neundorf at -
Home: neundorf at                -
      alex at               -

More information about the kde-core-devel mailing list