[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    KProcess and bad timing
From:       Rik Hemsley <rik () kde ! org>
Date:       1999-04-12 1:18:19
[Download RAW message or body]


I don't know if this is a problem with KProcess or the underlying OS
(Linux).

I've just been looking at some code for someone, and trying to work out
why when many processes are started, only some finish, though they're
all just cat-ting a small file.

I managed to fix the problem by inserting a usleep between starting
processes. It seems if you start many at once (within 1ms ?) only the
last one started will come back.

I know that starting a huge amount of processes at once is impolite, but
this problem could manifest itself elsewhere.

Cheers,
Rik

-- 
http://without.netpedia.net
'Every centimetre one moves from an erroneous first principle takes one
 a kilometre further from the truth' - Stephen Fry.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic