-Fix getpostscript and getcredentials clients to not hang when server doesn't

cut them off


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1318 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-07 19:34:12 +00:00
parent f0eee42c06
commit c7c12b5dcb
2 changed files with 14 additions and 0 deletions

View File

@ -12,5 +12,12 @@ BEGIN {
while (server |& getline) {
print $0
if (match($0,"<serverdone>")) {
quit = "yes"
}
if (match($0,"</xcatresponse>") && match(quit,"yes")) {
close(server)
exit
}
}
}

View File

@ -11,5 +11,12 @@ BEGIN {
while (server |& getline) {
print $0
if (match($0,"<serverdone>")) {
quit = "yes"
}
if (match($0,"</xcatresponse>") && match(quit,"yes")) {
close(server)
exit
}
}
}