executor/netbsd: base nth on 2 (#1874)

This commit is contained in:
m00nbsd 2020-06-27 17:24:37 +02:00 committed by GitHub
parent 2defc703fd
commit a2cdad9d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -60,8 +60,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);

View File

@ -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);