repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make getpeername() return the original socket address which before it was intercepted
[hband-tools.git]
/
user-tools
/
withpidfile
blob
6f3e6986f0d18382e09438a9675a210180c513b6
1
#!/bin/sh
2
3
if
[
$#
-lt
2
]
4
then
5
echo
"Usage: withpidfile <PIDFILE> <COMMAND> [<ARGS>]"
>&
2
6
exit
1
7
fi
8
9
set -e
10
11
echo
$$
>
"
$1
"
12
shift
13
exec
"$@"