We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b2451b + 448d19c commit 15b9043Copy full SHA for 15b9043
lsinfo.py renamed to examples/lsinfo.py
@@ -85,4 +85,3 @@ def printLsInfo(argList):
85
for i in range(1,len(sys.argv)):
86
argList.append(sys.argv[i])
87
printLsInfo(argList)
88
-
pythonlsf/lsf.i
@@ -696,4 +696,17 @@ char * get_lsb_sysmsg() {
696
return lsb_sysmsg();
697
}
698
699
+PyObject * get_pids_from_stream(struct jRusage * jrusage) {
700
+ struct pidInfo *pidInfo;
701
+ pidInfo = jrusage->pidInfo;
702
+ int i = 0;
703
+ PyObject *result = PyList_New(jrusage->npids);
704
+ for (i = 0; i < jrusage->npids; i++) {
705
+ PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(&pidInfo[i]),
706
+ SWIGTYPE_p_pidInfo, 0 | 0 );
707
+ PyList_SetItem(result, i, o);
708
+ }
709
+ return result;
710
+}
711
+
712
%}
0 commit comments