diff options
author | Dave Brolley <brolley@redhat.com> | 2008-08-20 14:40:36 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2008-08-20 14:40:36 -0400 |
commit | 1598733bd611536ea7a708c161bc4bbfbf25569c (patch) | |
tree | 1b6d47478103b080f881bca4d5d8e0da6003af5e /stap-server | |
parent | a33ac7e8d41a9e195a4bad3c861fb2d3425fa5ca (diff) | |
download | systemtap-steved-1598733bd611536ea7a708c161bc4bbfbf25569c.tar.gz systemtap-steved-1598733bd611536ea7a708c161bc4bbfbf25569c.tar.xz systemtap-steved-1598733bd611536ea7a708c161bc4bbfbf25569c.zip |
stap client/server now pass 'make installcheck'
Diffstat (limited to 'stap-server')
-rwxr-xr-x | stap-server | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/stap-server b/stap-server index 12f93757..b82bc695 100755 --- a/stap-server +++ b/stap-server @@ -69,7 +69,7 @@ function receive_request { nc -l $port < /dev/zero > $tar_client & # Wait for the transfer to complete. - wait %nc + wait '%nc' >/dev/null 2>&1 } # function: unpack_request @@ -159,25 +159,18 @@ function read_data_file { # Verify the first line of the file. read <&3 - line=$REPLY + line="$REPLY" data=`expr "$line" : "$1: \\\(.*\\\)"` if test "X$data" = "X"; then fatal "ERROR: Data in file $1 is incorrect" return fi - # Add any additional lines of data - while read <&3 - do - data="$data -$REPLY" - done - # Close the file exec 3<&- - # Echo the result - echo "$data" + # Now read the entire file. + cat $1 | sed "s/$1: //" } # function: parse_options [ STAP-OPTIONS ] @@ -397,7 +390,7 @@ function send_response { # in order to workaround a nc bug. It closes the connection # early if stdin from the other side is not provided. nc -l $port < $tar_server > /dev/null & - wait %nc + wait '%nc' >/dev/null 2>&1 } # function: fatal [ MESSAGE ] |