aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/gen.sh
Commit message (Collapse)AuthorAgeFilesLines
* pkg/csource: rewrite gen.sh in GoDmitry Vyukov2018-07-271-22/+0
| | | | | | | | | | Shell files cause portability problems. On Linux it's hard to install /bin/sh, /bin/bash is not present on *BSD. Any solution is hard to test on Darwin. Don't even want to mention Windows. Just do it in Go.
* pkg/csource: remove /bin/bash assumptionAnton Lindqvist2018-07-251-1/+1
| | | | | OpenBSD and probably other BSDs does not ship with /bin/bash. This particular script runs fine with regular /bin/sh.
* executor: overhaulDmitry Vyukov2018-07-241-0/+22
Make as much code as possible shared between all OSes. In particular main is now common across all OSes. Make more code shared between executor and csource (in particular, loop function and threaded execution logic). Also make loop and threaded logic shared across all OSes. Make more posix/unix code shared across OSes (e.g. signal handling, pthread creation, etc). Plus other changes along similar lines. Also support test OS in executor (based on portable posix) and add 4 arches that cover all execution modes (fork server/no fork server, shmem/no shmem). This change paves way for testing of executor code and allows to preserve consistency across OSes and executor/csource.