[Development] Please help me get my pending review count down

Albert Astals Cid aacid at kde.org
Fri Aug 21 17:11:12 BST 2015


El Dijous, 20 d'agost de 2015, a les 17:16:40, Thiago Macieira va escriure:
> On Friday 21 August 2015 01:45:12 Albert Astals Cid wrote:
> > So with your new patches and https://git.reviewboard.kde.org/r/124856/ i
> > can  run konsole fine both with --nofork and in the normal mode.
> 
> It wasn't racy before because the call from the parent process was queued in
> the socket of the child process, but it didn't get processed until
> app.exec() back in main() had been called. At that point, app existed and
> had been registered.
> 
> With the patches, the handling of the socket is done in a thread, so it
> happens immediately, before KUniqueApplication::start returns and,
> therefore, before the /MainApplication object is registered.
> 
> The solution in the patch is a hammer. We can do it with more finesse by
> having the child automatically start the new instance if it wasn't running
> before. I don't see why we need the call to newInstance from the parent.

Right, it was 2am ;)

I've updated the review request to do what you suggest. Seems to work too.

Cheers,
  Albert




More information about the kde-core-devel mailing list