Skip to content

Commit

Permalink
Remove imosh::set_pid.
Browse files Browse the repository at this point in the history
  • Loading branch information
imos committed Sep 23, 2014
1 parent 23750b4 commit ae9562c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
10 changes: 0 additions & 10 deletions imosh
Original file line number Diff line number Diff line change
Expand Up @@ -344,16 +344,6 @@ readonly IMOSH_PARSE_ARGUMENTS='
set -- "${IMOSH_ARGV[@]}"
fi'

imosh::set_pid() {
if func::isset BASHPID; then
IMOSH_PID="${BASHPID}"
else
local pid_file="$(mktemp "${__IMOSH_CORE_TMPDIR}/pid.XXXXXX")"
"${SHELL}" -c 'echo "${PPID}"' >"${pid_file}"
IMOSH_PID="$(cat "${pid_file}")"
fi
}

# __IMOSH_FLAGS_TYPE_<flag name>=<flag type>
# __IMOSH_FLAGS_DESCRIPTION_<flag name>=<description>
# __IMOSH_FLAGS_ALIASES=(from:to ...)
Expand Down
9 changes: 0 additions & 9 deletions library/20-pid.sh

This file was deleted.

0 comments on commit ae9562c

Please sign in to comment.