File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -843,6 +843,10 @@ size_t raw_fd_ostream::preferred_buffer_size() const {
843
843
if (IsWindowsConsole)
844
844
return 0 ;
845
845
return raw_ostream::preferred_buffer_size ();
846
+ #elif defined(__MVS__)
847
+ // The buffer size on z/OS is defined with macro BUFSIZ, which can be
848
+ // retrieved by invoking function raw_ostream::preferred_buffer_size().
849
+ return raw_ostream::preferred_buffer_size ();
846
850
#else
847
851
assert (FD >= 0 && " File not yet open!" );
848
852
struct stat statbuf;
Original file line number Diff line number Diff line change 1
1
import multiprocessing
2
2
import os
3
+ import platform
3
4
import time
4
5
5
6
import lit .Test
@@ -136,6 +137,6 @@ def _increase_process_limit(self):
136
137
"Raised process limit from %d to %d" % (soft_limit , desired_limit )
137
138
)
138
139
except Exception as ex :
139
- # Warn, unless this is Windows, in which case this is expected.
140
- if os .name != "nt" :
140
+ # Warn, unless this is Windows or z/OS , in which case this is expected.
141
+ if os .name != "nt" and platform . system () != "OS/390" :
141
142
self .lit_config .warning ("Failed to raise process limit: %s" % ex )
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ def killProcessAndChildrenIsSupported():
502
502
otherwise is contains a string describing why the function is
503
503
not supported.
504
504
"""
505
- if platform .system () == "AIX" :
505
+ if platform .system () == "AIX" or platform . system () == "OS/390" :
506
506
return (True , "" )
507
507
try :
508
508
import psutil # noqa: F401
@@ -528,6 +528,9 @@ def killProcessAndChildren(pid):
528
528
"""
529
529
if platform .system () == "AIX" :
530
530
subprocess .call ("kill -kill $(ps -o pid= -L{})" .format (pid ), shell = True )
531
+ elif platform .system () == "OS/390" :
532
+ # FIXME: Only the process is killed.
533
+ subprocess .call ("kill -KILL $(ps -s {} -o pid=)" .format (pid ), shell = True )
531
534
else :
532
535
import psutil
533
536
You can’t perform that action at this time.
0 commit comments