diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-08-21 13:26:56 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-08-21 13:26:56 -0400 |
commit | eaf7e3121e673d7f5a7b383ab9563766f1e83ff0 (patch) | |
tree | 0c1e415b03cc4f11667f6b4d8cb1cf8104b82d5e /stap-server | |
parent | c569c2e4973296701cd4caff35847e2fde32754a (diff) | |
parent | 46b3c6cd16e7aba1a5a26b310ee128bfdc7897fa (diff) | |
download | systemtap-steved-eaf7e3121e673d7f5a7b383ab9563766f1e83ff0.tar.gz systemtap-steved-eaf7e3121e673d7f5a7b383ab9563766f1e83ff0.tar.xz systemtap-steved-eaf7e3121e673d7f5a7b383ab9563766f1e83ff0.zip |
Merge commit 'origin/master' into pr4225
* commit 'origin/master':
Added task finder target parameter to vm_callback functions.
Supports original and new utrace interfaces.
Add ChangeLog entries
stap client/server now pass 'make installcheck'
Looks for both mmap and mmap2.
PR 6841 fix.
Add missing 'process' bindings.
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 ] |