USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 1940 1372 ? Ss Jan07 0:06 init [3] root 502 0.0 0.0 2136 1500 ? Ss Jan07 0:07 /usr/sbin/syslogd -m 0 root 509 0.0 0.1 3868 3324 ? Ss Jan07 0:00 /usr/sbin/klogd -c 3 -2 nobody 573 0.0 0.3 8688 6768 ? Ssl Jan07 0:00 /usr/bin/pixelserv-tls -f -p 80 -k 443 -A 8080 -l 2 -z /var/lib/pixelserv -T 1200 root 631 0.0 0.0 5620 1984 ? Ss Jan07 0:00 /usr/sbin/sshd -o PidFile=/run/sshd.pid -f /etc/ssh/sshd_config root 16439 0.1 0.2 9620 5748 ? Ss 17:36 0:00 \_ sshd: root@pts/4 root 16441 0.0 0.1 3824 3220 pts/4 Ss 17:36 0:00 | \_ -bash root 16508 0.0 0.0 3152 1908 pts/4 S+ 17:37 0:00 | \_ screen -S emerge root 16509 0.0 0.1 3284 2400 ? Ss 17:37 0:00 | \_ SCREEN -S emerge root 16510 0.0 0.1 3836 3352 pts/5 Ss 17:37 0:00 | \_ -/bin/bash root 16576 4.0 2.1 49548 45144 pts/5 S+ 17:38 0:13 | \_ /usr/bin/python3.6 -b /usr/lib/python-exec/python3.6/emerge -1a net-fs/samba portage 16635 3.3 0.6 16544 12548 pts/5 S+ 17:39 0:09 | \_ /usr/bin/python3.6m /usr/lib/portage/python3.6/socks5-server.py /var/tmp/portage/.portage.16576.net.sock root 17124 0.0 0.3 8516 7068 pts/5 S+ 17:39 0:00 | \_ /usr/bin/python3.6m /usr/lib/portage/python3.6/pid-ns-init 17125 root 17125 0.0 0.3 8516 7156 pts/7 Ss+ 17:39 0:00 | \_ /usr/bin/python3.6m /usr/lib/portage/python3.6/pid-ns-init 250 250 250 18 0,1,2 /usr/bin/sandbox [net-fs/samba-4.11.4] sandbox /usr/lib/portage/python3.6/ebuild.sh configure portage 17128 0.0 0.0 1956 1296 pts/7 S+ 17:39 0:00 | \_ [net-fs/samba-4.11.4] sandbox /usr/lib/portage/python3.6/ebuild.sh configure portage 17129 0.0 0.2 6696 5516 pts/7 S+ 17:39 0:00 | \_ /bin/bash /usr/lib/portage/python3.6/ebuild.sh configure portage 17146 0.0 0.2 6836 5360 pts/7 S+ 17:39 0:00 | \_ /bin/bash /usr/lib/portage/python3.6/ebuild.sh configure portage 17167 0.0 0.0 2732 1512 pts/7 S+ 17:39 0:00 | \_ tee -a /var/tmp/portage/net-fs/samba-4.11.4/temp/build-.arm.log portage 17266 18.6 2.6 3117432 55192 pts/7 Sl+ 17:39 0:47 | \_ /usr/bin/python3.6 /var/tmp/portage/net-fs/samba-4.11.4/work/samba-4.11.4/buildtools/bin/waf --prefix=/usr --libdir=/usr/lib --enable-fhs --sysconfdir=/etc --localstatedir=/var --with-modulesdir=/usr/lib/samba --with-piddir=/run/samba --bundled-libraries=heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE --builtin-libraries=NONE --disable-rpath --disable-rpath-install --nopyc --nopyo --with-acl-support --with-dnsupdate --without-ads --disable-cephfs --without-cluster-support --disable-cups --without-dmapi --without-fam --without-gpgme --with-json --disable-iprint --with-pam --with-pammodulesdir=/lib/security --with-quotas --with-syslog --without-systemd --with-winbind --disable-avahi --without-lttng --with-ldap --without-profiling-data --with-shared-modules= configure portage 17291 2.0 0.3 9976 7824 pts/7 S+ 17:39 0:05 | \_ /usr/bin/python3.6 -c #! /usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2016-2018 (ita) import os, sys, traceback, base64, signal try: .import cPickle except ImportError: .import pickle as cPickle try: .import subprocess32 as subprocess except ImportError: .import subprocess try: .TimeoutExpired = subprocess.TimeoutExpired except AttributeError: .class TimeoutExpired(Exception): ..pass def run(): .txt = sys.stdin.readline().strip() .if not txt: ..# parent process probably ended ..sys.exit(1) .[cmd, kwargs, cargs] = cPickle.loads(base64.b64decode(txt)) .cargs = cargs or {} .if not 'close_fds' in kwargs: ..# workers have no fds ..kwargs['close_fds'] = False .ret = 1 .out, err, ex, trace = (None, None, None, None) .try: ..proc = subprocess.Popen(cmd, **kwargs) ..try: ...out, err = proc.communicate(**cargs) ..except TimeoutExpired: ...if kwargs.get('start_new_session') and hasattr(os, 'killpg'): ....os.killpg(proc.pid, signal.SIGKILL) ...else: ....proc.kill() ...out, err = proc.communicate() ...exc = TimeoutExpired(proc.args, timeout=cargs['timeout'], output=out) ...exc.stderr = err ...raise exc ..ret = proc.returncode .except Exception as e: ..exc_type, exc_value, tb = sys.exc_info() ..exc_lines = traceback.format_exception(exc_type, exc_value, tb) ..trace = str(cmd) + '\n' + ''.join(exc_lines) ..ex = e.__class__.__name__ .# it is just text so maybe we do not need to pickle() .tmp = [ret, out, err, ex, trace] .obj = base64.b64encode(cPickle.dumps(tmp)) .sys.stdout.write(obj.decode()) .sys.stdout.write('\n') .sys.stdout.flush() while 1: .try: ..run() .except KeyboardInterrupt: ..break portage 17292 0.1 0.3 9524 7576 pts/7 S+ 17:39 0:00 | \_ /usr/bin/python3.6 -c #! /usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2016-2018 (ita) import os, sys, traceback, base64, signal try: .import cPickle except ImportError: .import pickle as cPickle try: .import subprocess32 as subprocess except ImportError: .import subprocess try: .TimeoutExpired = subprocess.TimeoutExpired except AttributeError: .class TimeoutExpired(Exception): ..pass def run(): .txt = sys.stdin.readline().strip() .if not txt: ..# parent process probably ended ..sys.exit(1) .[cmd, kwargs, cargs] = cPickle.loads(base64.b64decode(txt)) .cargs = cargs or {} .if not 'close_fds' in kwargs: ..# workers have no fds ..kwargs['close_fds'] = False .ret = 1 .out, err, ex, trace = (None, None, None, None) .try: ..proc = subprocess.Popen(cmd, **kwargs) ..try: ...out, err = proc.communicate(**cargs) ..except TimeoutExpired: ...if kwargs.get('start_new_session') and hasattr(os, 'killpg'): ....os.killpg(proc.pid, signal.SIGKILL) ...else: ....proc.kill() ...out, err = proc.communicate() ...exc = TimeoutExpired(proc.args, timeout=cargs['timeout'], output=out) ...exc.stderr = err ...raise exc ..ret = proc.returncode .except Exception as e: ..exc_type, exc_value, tb = sys.exc_info() ..exc_lines = traceback.format_exception(exc_type, exc_value, tb) ..trace = str(cmd) + '\n' + ''.join(exc_lines) ..ex = e.__class__.__name__ .# it is just text so maybe we do not need to pickle() .tmp = [ret, out, err, ex, trace] .obj = base64.b64encode(cPickle.dumps(tmp)) .sys.stdout.write(obj.decode()) .sys.stdout.write('\n') .sys.stdout.flush() while 1: .try: ..run() .except KeyboardInterrupt: ..break root 16585 0.0 0.2 9620 5736 ? Ss 17:38 0:00 \_ sshd: root@pts/6 root 16587 0.0 0.1 3824 3236 pts/6 Ss 17:38 0:00 \_ -bash root 25788 0.0 0.0 3680 1948 pts/6 R+ 17:43 0:00 \_ ps -faux root 662 0.0 0.0 2164 1652 pts/0 Ss+ Jan07 0:00 /sbin/agetty 38400 tty1 linux root 663 0.0 0.0 2164 1592 pts/1 Ss+ Jan07 0:00 /sbin/agetty 38400 tty2 linux root 664 0.0 0.0 2164 1656 pts/2 Ss+ Jan07 0:00 /sbin/agetty 38400 tty3 linux root 665 0.0 0.0 2164 1584 pts/3 Ss+ Jan07 0:00 /sbin/agetty 38400 tty4 linux root 16468 0.0 0.0 4668 1864 ? Ss 17:36 0:00 ssh-agent