Skip to content

Commit

Permalink
docs: cleanup, update copyright dates
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Jan 30, 2023
1 parent 5d38479 commit 0741678
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2022, Michael Santos <[email protected]>
Copyright (c) 2022-2023, Michael Santos <[email protected]>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
12 changes: 6 additions & 6 deletions lib/stdio.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ defmodule Stdio do
## Overview
`Stdio` manages system processes. The process standard output (`stdout`)
and standard error (`stderr`) are represented as `Stream`'s of
`t:stdio/0` tuples. `pipe!/4` reads standard input (`stdin`) from a
and standard error (`stderr`) are represented as `Stream`s of
`t:stdio/0` tuples. `pipe!/4` reads standard input (`stdin`) from a
binary stream.
* system processes run as [foreground
Expand All @@ -73,7 +73,7 @@ defmodule Stdio do
iex> ["hello\n"] |> Stdio.pipe!("sed -u 's/hello/bye/'") |> Enum.to_list()
[stdout: "bye\n", exit_status: 0]
> #### Unbuffer Output {: .info}
> #### Note {: .info}
> Process output may be buffered. The pipe example
> unbuffers the output by using the `-u` option of
> [sed(1)](https://man7.org/linux/man-pages/man1/sed.1.html).
Expand All @@ -83,7 +83,7 @@ defmodule Stdio do
> #### Warning {: .warning}
> Some behaviours, notably `Stdio.Container` and `Stdio.Jail`,
> require the system supervisor (not the beam process!) to be running as
> the `root` user. See `setuid/0` for instructions on how to set it up.
> the `root` user. See `setuid/0` for instructions for set up.
Behaviours may change the root filesystem for the process. The default
`chroot(2)` directory hierarchy can be created by running:
Expand Down Expand Up @@ -212,7 +212,7 @@ defmodule Stdio do
Function run during stream termination.
`c:onexit/1` runs when the stream is closed. The function can perform
clean up and signal any lingering processses. Returns `true` if
clean up and signal any lingering processes. Returns `true` if
subprocesses were found to be running during cleanup.
"""
@callback onexit(Keyword.t()) :: (Stdio.ProcessTree.t() -> boolean())
Expand Down Expand Up @@ -268,7 +268,7 @@ defmodule Stdio do
## ops
Provides a sequence of system calls to perform on the subprocess
Provides a sequence of system calls to run on the subprocess.
## onerror
Expand Down
6 changes: 3 additions & 3 deletions lib/stdio/container.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ defmodule Stdio.Container do
## Operations
> #### Mount Namespace Root (chroot) Directory {: .info}
> The chroot directory structure must be created before using this
> behaviour.
> #### Note {: .info}
> To mount a namespaced root (chroot) directory, the chroot directory
> structure must be created before using this behaviour.
>
> See `make_chroot_tree!/0` and `make_chroot_tree!/1`.
Expand Down
6 changes: 3 additions & 3 deletions lib/stdio/rootless.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ defmodule Stdio.Rootless do
## Operations
> #### Mount Namespace Root (chroot) Directory {: .info}
> The chroot directory structure must be created before using this
> behaviour.
> #### Note {: .info}
> To mount a namespaced root (chroot) directory, the chroot directory
> structure must be created before using this behaviour.
>
> See `Stdio.Container.make_chroot_tree!/0` and
> `Stdio.Container.make_chroot_tree!/1`.
Expand Down
2 changes: 1 addition & 1 deletion test/stdio_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ defmodule StdioDocTest do
use ExUnit.Case

# The Stdio doctests contain some Linux specific tests. As a workaround,
# seperate the doctests so they can be skipped on other platforms.
# separate the doctests so they can be skipped on other platforms.
@moduletag :linux
doctest Stdio

Expand Down

0 comments on commit 0741678

Please sign in to comment.