zdtm: limit the line length for ps by 160 symbols

By default, this limit is 80 symbols and this isn't enough:
 4730 pts/0    S+     0:00          \_ ./zdtm_ct zdtm.py
7535 4731 pts/0    S+     0:00          |   \_ python zdtm.py
7536 4839 pts/0    S+     0:00          |       \_ python zdtm.p
7537 4861 pts/0    S+     0:00          |           \_ make --no
7538 4882 pts/0    S+     0:00          |               \_ ./mnt
7539 4883 ?        Ss     0:00          |                   \_ .

Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Andrei Vagin 2020-03-26 20:03:34 +03:00
parent eab1a30748
commit 698f3a4dbd

View file

@ -1885,7 +1885,7 @@ class Launcher:
pid, status = os.waitpid(0, flags)
except OSError as e:
if e.errno == errno.EINTR:
subprocess.Popen(["ps", "axf"]).wait()
subprocess.Popen(["ps", "axf", "--width", "160"]).wait()
continue
signal.alarm(0)
raise e