diff options
author | Dave Brolley <brolley@redhat.com> | 2008-08-11 15:54:45 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2008-08-11 15:54:45 -0400 |
commit | 32a1dfe9c13094391dab645484e7563992f9ba53 (patch) | |
tree | 039ae20b62771e00fa055e0c7b61ac28c7a99ee3 /stap-server | |
parent | b391a1e0499d3cbafde11beeba8fb385465c1e64 (diff) | |
download | systemtap-steved-32a1dfe9c13094391dab645484e7563992f9ba53.tar.gz systemtap-steved-32a1dfe9c13094391dab645484e7563992f9ba53.tar.xz systemtap-steved-32a1dfe9c13094391dab645484e7563992f9ba53.zip |
stap-serverd was incorectly determining that the server could
not be started.
Diffstat (limited to 'stap-server')
-rwxr-xr-x | stap-server | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stap-server b/stap-server index fb4203b6..15a2fb48 100755 --- a/stap-server +++ b/stap-server @@ -31,7 +31,7 @@ function configuration { # function: initialization function initialization { # Initialization - rc=0 + stap_rc=0 wd=`pwd` # Default options settings @@ -340,7 +340,7 @@ function call_stap { >> $tmpdir_server/stdout \ 2>> $tmpdir_server/stderr - rc=$? + stap_rc=$? } # function: create_response @@ -401,7 +401,7 @@ function send_response { # early if stdin from the other side is not provided. nc -l $port < $tar_server > /dev/null & - if test $rc = 0; then + if test $stap_rc = 0; then echo "done:" else echo "failed:" @@ -449,7 +449,7 @@ function cleanup { function terminate { # Clean up cleanup - exit $rc + exit 1 } #----------------------------------------------------------------------------- @@ -467,4 +467,4 @@ package_response send_response cleanup -exit $rc +exit 0 |