Use QProcess instead of manual fork/exec
ClosedPublic

Authored by ltoscano on Mar 9 2017, 10:07 AM.

Details

Summary

Probably legacy code from before the time of QProcess (and KProcess)?

Test Plan

It still compiles and generates the same output

Diff Detail

Repository
R452 KIOs for development
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ltoscano created this revision.Mar 9 2017, 10:07 AM
mpyne accepted this revision.Mar 11 2017, 5:52 PM

Looks good. I don't honestly remember why I didn't use QProcess here (and I seem to have left comments for everything except that...) but there's no reason to reinvent the wheel. Don't forget to bump the version string though.

perldoc/perldoc.cpp
45–46

I would bump the version here (or alternately just remove the version portion entirely and leave it something like "kio_perldoc for KF5" as this version mostly an internal detail).

This revision is now accepted and ready to land.Mar 11 2017, 5:52 PM

I have two other commits in the queue that may require a review (coming in few hours), one touches the way the version is passed to the perl script; I can bump the version there

This revision was automatically updated to reflect the committed changes.
bcooksley reopened this revision.Mar 11 2017, 7:57 PM
bcooksley added a subscriber: bcooksley.

Reopening revision - the commit which closed this has been expunged from the history per T5577.

This revision is now accepted and ready to land.Mar 11 2017, 7:57 PM
This revision was automatically updated to reflect the committed changes.