aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/osutil_bsd.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/osutil: add DiskUsage functionDmitry Vyukov2026-01-091-41/+0
| | | | DiskUsage returns total recursive disk usage of the dir (similar to du -s).
* pkg/manager: show bug first timeDmitry Vyukov2025-01-171-0/+5
| | | | | This allows to understand if a bug is new (found in the current run) or old.
* all: go fix everythingDmitry Vyukov2024-04-261-1/+0
|
* tools/syz-testbed: do not send SIGKILL to syz-managersAleksandr Nogikh2021-10-201-1/+1
| | | | | Doing so can result in syz-manager leaking GCE instances. Set PDEATHSIG to SIGTERM instead, so that syz-manager has a change to exit gracefully.
* pkg: update generated files to go 1.17Alexey Kardashevskiy2021-07-071-0/+1
| | | | | | | | | | | "make generate" produces this diff when go 1.17 (go1.17-c95464f0ea3f==upstream) is used. Seems compatible with >=1.16. https://github.com/golang/go/commit/4d2d89ff42ca documents the syntax. https://github.com/golang/go/commit/eeadce2d8713 enforces "ignore" for unsatisfiable tags hence the pkg/csource/gen.go change. Signed-off-by: Alexey Kardashevskiy <aik@linux.ibm.com>
* pkg/osutil: remove appengine tagDmitry Vyukov2020-07-061-1/+1
| | | | | Appengine doesn't provide appengine tag anymore. Resort to use of syscall package for ExitStatus instead.
* tools/syz-env: restrict Makefile parallelism based on RAMDmitry Vyukov2019-07-191-0/+4
| | | | | | | Ensure that we have at least 1GB per Makefile job. Go compiler/linker can consume significant amount of memory (observed to consume at least 600MB). See #1276 for context. Update #1276
* pkg/osutil: kill subprocesses more reliablyDmitry Vyukov2019-03-181-0/+3
| | | | | | | | | | In some cases we start scp, which starts ssh, then kill scp but the ssh subprocess is not killed. As the result cmd.Wait hangs waiting for EOF on the stdout/stderr, which are still kept alive by ssh subprocess. But ssh just hangs forever. Create a process group for each command and kill whole process group. Hopefully this will help.
* Add mandatory OpenBSD bits (#689)Anton Lindqvist2018-08-281-1/+1
| | | | | | | | | | | | | | | | | | all: add openbsd support squash of the following commits: * openbsd: add mandatory bits * report: add OpenBSD support * executor: skip building kvm on OpenBSD * executor: add OpenBSD support Linking against libutil is necessary due to usage of openpty(3). * executor: fix typo in fail() message * fixup! report: add OpenBSD support * fixup! openbsd: add mandatory bits * fixup! openbsd: add mandatory bits * fixup! openbsd: add mandatory bits * fixup! report: add OpenBSD support * gometalinter: skip sys/openbsd
* pkg/osutil: replace UmountAll with RemoveAllDmitry Vyukov2018-08-041-1/+2
| | | | | | | | In pkg/ipc we don't just want to UmountAll, we want to remove all handling as many cases as possible (mounts, read-only files, etc, similar to executor's remove_dir). So unmounting and removing needs to be a single function, so that it can handle all these cases.
* pkg/kernel: sandbox make invocationDmitry Vyukov2017-11-171-0/+8
|
* pkg/osutil: don't leace runaway processesDmitry Vyukov2017-11-161-1/+5
| | | | | | When manager is stopped there are sometimes runaway qemu processes still running. Set PDEATHSIG for all subprocesses. We never need child processes outliving parents.
* all: basic building on netbsdDmitry Vyukov2017-10-231-0/+16
This just makes make TARGETOS=netbsd succeed. We don't yet have prog target for netbsd.