summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-10-12 13:01:55 -0400
committerNathan Binkert <binkertn@umich.edu>2005-10-12 13:01:55 -0400
commit6bc057139d89fbaa5be7401616debc98a86fcbfb (patch)
tree5f871f52fef5df7a4beea8a9c8b61e69a57e0a8a /util
parent0f1b066b6b345143a8fd46fe04e50f5829690ea7 (diff)
downloadgem5-6bc057139d89fbaa5be7401616debc98a86fcbfb.tar.xz
don't write the pbs jobid here, do it in send.py so we know
what it is sooner Don't handle sigstop since you're not allowed to. util/pbs/send.py: write the pbs jobid here in send.py so we know what it is sooner --HG-- extra : convert_revision : 93292d046cb4b628031e0e57e39eb4470b598ed8
Diffstat (limited to 'util')
-rwxr-xr-xutil/pbs/job.py3
-rwxr-xr-xutil/pbs/send.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/util/pbs/job.py b/util/pbs/job.py
index e2636c111..fb375cf5d 100755
--- a/util/pbs/job.py
+++ b/util/pbs/job.py
@@ -168,8 +168,6 @@ if __name__ == '__main__':
started = date()
jobdir.echofile('.running', started)
jobdir.rmfile('.queued')
- jobdir.echofile('.pbs_jobid', pbs_jobid)
- jobdir.echofile('.pbs_jobname', pbs_jobid)
jobdir.echofile('.host', host)
jobdir.setstatus('running on %s on %s' % (host, started))
@@ -219,7 +217,6 @@ if __name__ == '__main__':
signal.signal(signal.SIGINT, handler)
signal.signal(signal.SIGQUIT, handler)
signal.signal(signal.SIGTERM, handler)
- signal.signal(signal.SIGSTOP, handler)
signal.signal(signal.SIGCONT, handler)
signal.signal(signal.SIGUSR1, handler)
signal.signal(signal.SIGUSR2, handler)
diff --git a/util/pbs/send.py b/util/pbs/send.py
index c66fb1c05..51eb8425e 100755
--- a/util/pbs/send.py
+++ b/util/pbs/send.py
@@ -266,6 +266,8 @@ for job in joblist:
print 'PBS Jobid: %s' % jobid
namehack.setname(jobid, job.name)
queued = date()
+ jobdir.echofile('.pbs_jobid', jobid)
+ jobdir.echofile('.pbs_jobname', job.name)
jobdir.echofile('.queued', queued)
jobdir.setstatus('queued on %s' % queued)
else: