~ubuntu-branches/ubuntu/precise/nordugrid-arc/precise

« back to all changes in this revision

Viewing changes to src/services/a-rex/grid-manager/jobs/job.cpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2011-10-24 02:19:37 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20111024021937-8whiie90uq2oqsok
Tags: 1.1.0-2
* Backport fixes for endian independent md5 checksum
* Filter out -Wl,-Bsymbolic-functions from default Ubuntu LDFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
}
110
110
 
111
111
JobDescription::~JobDescription(void){
112
 
 /* child is not destroyed here */
 
112
  if(child) {
 
113
    // Wait for downloader/uploader/script to finish
 
114
    child->Wait();
 
115
    delete child;
 
116
    child=NULL;
 
117
  }
113
118
}
114
119
 
115
120
bool JobDescription::GetLocalDescription(const JobUser &user) {
130
135
    reason+=failure_reason; reason+="\n";
131
136
  };
132
137
  return reason;
133
 
};
 
138
}
 
139
 
 
140
void JobDescription::PrepareToDestroy(void) {
 
141
  // We could send signals to downloaders and uploaders.
 
142
  // But currently those do not implement safe shutdown.
 
143
  // So we will simply wait for them to finish in destructor.
 
144
}
134
145