summaryrefslogtreecommitdiff
path: root/drmaa
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-02-16 17:25:14 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-02-16 17:25:14 +0100
commit361de9733924c796cfb09a9fd300b5cd7c4a893d (patch)
treed400257efdc110cfba5d88b0910668f9f6511e6c /drmaa
parentfbacc1e2472fdb1d898e10a227fac91962464cf8 (diff)
low: wait: Return alist instead of list of equal-separated strings.
Diffstat (limited to 'drmaa')
-rw-r--r--drmaa/v1/low.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/drmaa/v1/low.scm b/drmaa/v1/low.scm
index 52d37f3..624c018 100644
--- a/drmaa/v1/low.scm
+++ b/drmaa/v1/low.scm
@@ -499,7 +499,15 @@ the current session will be affected."
(pointer-to rusage)
error-message
(DRMAA 'ERROR_STRING_BUFFER))
- (values job-id-out status-code (extract-values rusage))
+ (values job-id-out
+ status-code
+ (map (lambda (value)
+ (or (and=> (string-index value #\=)
+ (lambda (split-point)
+ (cons (string-take value split-point)
+ (string-drop value (1+ split-point)))))
+ (cons value value)))
+ (extract-values rusage)))
error-message)))
(define (w-if-exited? status-code)