Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
6586a869
Commit
6586a869
authored
Jan 14, 2016
by
neil
Browse files
nc exit automatically, not use kill anymore.
parent
9877d466
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
6586a869
...
@@ -235,11 +235,11 @@ _stopserver() {
...
@@ -235,11 +235,11 @@ _stopserver() {
pid
=
"
$1
"
pid
=
"
$1
"
if
[
"
$pid
"
]
;
then
if
[
"
$pid
"
]
;
then
if
[
"
$DEBUG
"
]
;
then
if
[
"
$DEBUG
"
]
;
then
kill
-s
9
$pid
#
kill -s 9 $pid
# killall -s 9 nc
# killall -s 9 nc
else
else
kill
-s
9
$pid
>
/dev/null
#
kill -s 9 $pid > /dev/null
wait
$pid
2>/dev/null
#
wait $pid 2>/dev/null
# killall -s 9 nc > /dev/null
# killall -s 9 nc > /dev/null
fi
fi
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment