diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-31 06:20:41 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-30 23:21:12 -0700 |
commit | 2cb4226e52d5010eb4f92942e40499b6aa124262 (patch) | |
tree | ee8be9aba33de288d84e4f79e3262390e1c9dd2a /GNUmakefile | |
parent | 0c1f9fe19dacb213c08bce5dad502eeaeb52eb9c (diff) | |
download | unicorn-2cb4226e52d5010eb4f92942e40499b6aa124262.tar.gz |
setsid(8) is non-portable, but we depend on Ruby already and it's trivial to implement; so just use the Ruby-only version
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 551b77a..695c0ae 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -92,9 +92,13 @@ else rm $(stamp) 2>/dev/null && $(check_test) endif +# not all systems have setsid(8), we need it because we spam signals +# stupidly in some tests... +rb_setsid := $(ruby) -e 'Process.setsid' -e 'exec *ARGV' + # TRACER='strace -f -o $(t).strace -s 100000' run_test = $(quiet_pre) \ - setsid $(TRACER) $(ruby) -w $(arg) $(TEST_OPTS) $(quiet_post) || \ + $(rb_setsid) $(TRACER) $(ruby) -w $(arg) $(TEST_OPTS) $(quiet_post) || \ (sed "s,^,$(extra): ," >&2 < $(t); exit 1) %.n: arg = $(subst .n,,$(subst --, -n ,$@)) |