diff options
| author | m00nbsd <42475391+m00nbsd@users.noreply.github.com> | 2020-06-27 17:24:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-27 17:24:37 +0200 |
| commit | a2cdad9d42694059bd75f809d297ed9bf853da12 (patch) | |
| tree | 28df8a6c4ba263e8e669dfec34d107f16de28970 /pkg/csource/generated.go | |
| parent | 2defc703fd6849944bde1737f38a46889fc095dc (diff) | |
executor/netbsd: base nth on 2 (#1874)
Diffstat (limited to 'pkg/csource/generated.go')
| -rw-r--r-- | pkg/csource/generated.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 353bc60f9..2732eeb03 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -1599,8 +1599,8 @@ static int inject_fault(int nth) fail("failed to open /dev/fault"); en.scope = FAULT_SCOPE_LWP; - en.mode = FAULT_MODE_NTH; - en.nth = nth; + en.mode = 0 /* FAULT_MODE_NTH_ONESHOT */; + en.nth = nth + 2 /* FAULT_NTH_MIN */; if (ioctl(fd, FAULT_IOC_ENABLE, &en) != 0) fail("FAULT_IOC_ENABLE failed with nth=%d", nth); |
