Skip to content

Commit

Permalink
Merge pull request #22 from JuliaWeb/minor-fixes
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
JamesWrigley authored Oct 16, 2024
2 parents 8f5aa6c + 8ded2ab commit d730a68
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
version: '1'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
run: julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'

- name: Build and deploy
env:
Expand Down
3 changes: 3 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ libssh_jll = "a8d4f100-aa25-5708-be18-96e0805c2c9d"

[compat]
Documenter = "1"

[sources]
LibSSH = { path = ".." }
2 changes: 1 addition & 1 deletion src/channel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ end

function Base.show(io::IO, f::Forwarder)
if !isopen(f)
print(io, Forwarder, "()")
print(io, Forwarder, "([closed])")
else
if isnothing(f.out)
print(io, Forwarder, "($(f.localinterface):$(f.localport)$(f.remotehost):$(f.remoteport))")
Expand Down
7 changes: 7 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ Base.notify(cond::CloseableCondition, args...; kwargs...) = notify(cond.cond, ar
Base.lock(cond::CloseableCondition) = lock(cond.cond)
Base.unlock(cond::CloseableCondition) = unlock(cond.cond)
Base.isopen(cond::CloseableCondition) = !(@atomic cond.closed)

# Blocking wrapper for printf(). Useful for debugging when you want to ensure
# that printing doesn't cause a task switch.
function printstr(x::AbstractString)
@ccall printf("$(x)\n"::Cstring)::Cint
Libc.flush_cstdio()
end

0 comments on commit d730a68

Please sign in to comment.