-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:
parent
f0eee42c06
commit
c7c12b5dcb
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user