From 3645389673af4c62a636cfe36f258ae770e8fb6b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 22 Dec 2017 11:47:04 +0100 Subject: pkg/csource: fix handling of proc types Generated program always uses pid=0 even when there are multiple processes. Make each process use own pid. Unfortunately required to do quite significant changes to prog, because the current format only supported fixed pid. Fixes #490 --- prog/encoding_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prog/encoding_test.go') diff --git a/prog/encoding_test.go b/prog/encoding_test.go index 5fce30142..6c063b5a7 100644 --- a/prog/encoding_test.go +++ b/prog/encoding_test.go @@ -159,7 +159,7 @@ func TestDeserialize(t *testing.T) { t.Fatalf("deserialization should have failed with:\n%s\ndata:\n%s\n", test.err, test.data) } - p.SerializeForExec(buf, 0) + p.SerializeForExec(buf) } } } -- cgit mrf-deployment