[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: KProcess and input/output
From: Lubos Lunak <l.lunak () sh ! cvut ! cz>
Date: 2001-05-01 12:36:44
[Download RAW message or body]
Hello,
KProcess guru needed. I have problem when using kstart : It uses
KProcess:start( DontCare, NoCommunication ). The problem is that every KDE
app here prints a warning about no definition of PluralForm ( the new i18n
thingy, it's not handled in kde-i18n-cs yet ), but since it's a background
process when started using KProcess, it gets SIGTTOU when trying to print the
output and it's simply stopped.
Just setting it to SIG_IGN for SIGTTIN and SIGTTOU makes it work, but now it
prints the output to console, which is probably a thing that processes
started from KProcess shouldn't do. Just closing fds 0, 1 and 2 doesn't work,
so what's the proper way of getting rid of the output ? Is something like
dup2( open( "/dev/null", O_WRONLY ), STDIN_STDOUT ) ok ?
Lubos Lunak
--
l.lunak@email.cz ; l.lunak@kde.org
http://dforce.sh.cvut.cz/~seli
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic