Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-swift latest

spawnCapturing(_:_:)

Runs executable and captures what it prints, without this library.

Source and package
Qualified name
spawnCapturing(_:_:)
Package
libtmux-swift
Source
Tests/TmuxFixture/TmuxLane.swift
spawnCapturing(executable: String, arguments: [String]) -> ( output: String, error: String, status: Int32 )?

Description#

posix_spawn rather than Process or popen: this runs while the runner plans tests on several threads, and a fork from a multithreaded process can deadlock in the child before it execs, leaving its pipes open forever.

Parameters
Esc

Type to search.

Reference previewOpen reference