Popen
class that we don’t use, e.g. wait()
, pid()
, poll()
, kill()
, but they sound IMHO common enough to be useful in the future, so not sure how deep we should go there.
Popen
class that we don’t use, e.g. wait()
, pid()
, poll()
, kill()
, but they sound IMHO common enough to be useful in the future, so not sure how deep we should go there.
The templates `is_ready`, `param_pack`, and `has_type` are not used
anywhere, so let's remove them.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For detailed information about the code coverage, see the test coverage report.
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Note that there are some API functions of the Popen class that we don’t use, e.g. wait(), pid(), poll(), kill(), but they sound IMHO common enough to be useful in the future, so not sure how deep we should go there.
Deleting as much as possible seems fine. If code turns out to be needed in future (although I wouldn’t think we are going to expand this interface), it can be retrieved from the git history.
As long as #29868 works on top of this, it’s fine by me. I’ll do some testing. Not that I would expect this to break anything as long as it still compiles.
Tested the combination on Ubuntu 23.10 and Windows.
tACK 908c51fe4afeba0af500c6275027b1afa1b3bd19
ACK 908c51fe4afeba0af500c6275027b1afa1b3bd19. It is compatible with https://github.com/bitcoin/bitcoin/pull/29961 #29868.
I’d suggest to remove the mentioning of the check_output
function from all comments. That function was not even pulled from the upstream.
Note that there are some API functions of the Popen class that we don’t use, e.g. wait(), pid(), poll(), kill(), but they sound IMHO common enough to be useful in the future, so not sure how deep we should go there.
Deleting as much as possible seems fine. If code turns out to be needed in future (although I wouldn’t think we are going to expand this interface), it can be retrieved from the git history.
I agree to the deletion.
UPD. See #29961 (review).
poll
and kill
; note that pid
and wait
are used internally) and another one that removes obsolete check_output
comments and also gets rid of the Popen API numbering.
903@@ -904,8 +904,6 @@ class Streams
904 * 3. wait() - Wait for the child to exit.
905 * 4. retcode() - The return code of the exited child.
906 * 5. pid() - PID of the spawned child.
907- * 6. poll() - Check the status of the running child.
908- * 7. kill(sig_num) - Kill the child. SIGTERM used by default.
909 * 8. send(...) - Send input to the input channel of the child.
The numbering of this list is off after this change. That might be confusing to someone in the future. I would suggest either updating the following numbering or something like.
0 * 6. (deleted)
1 * 7. (deleted)
Remove obsolete `check_output` references in the comments and remove
the numbering of the Popen API methods, as they don't seem to provide a
value and just make diffs larger for future changes.
968
969 int retcode() const noexcept { return retcode_; }
970
971 int wait() noexcept(false);
972
973- int poll() noexcept(false);
Popen::kill()
is removed (and Popen::poll()
is kept as-is).