version 1.29, 2014/04/07 21:42:56 |
version 1.30, 2014/05/24 17:04:16 |
|
|
} else |
} else |
ops |= pid ? KTROP_CLEAR : KTROP_CLEARFILE; |
ops |= pid ? KTROP_CLEAR : KTROP_CLEARFILE; |
|
|
if (ktrace(tracefile, ops, trpoints, pid) < 0) |
if (ktrace(tracefile, ops, trpoints, pid) < 0) { |
|
if (errno == ESRCH) |
|
err(1, "%d", pid); |
err(1, "%s", tracefile); |
err(1, "%s", tracefile); |
|
} |
exit(0); |
exit(0); |
} |
} |
|
|
|
|
execvp(argv[0], &argv[0]); |
execvp(argv[0], &argv[0]); |
err(1, "exec of '%s' failed", argv[0]); |
err(1, "exec of '%s' failed", argv[0]); |
} |
} |
else if (ktrace(tracefile, ops, trpoints, pid) < 0) |
else if (ktrace(tracefile, ops, trpoints, pid) < 0) { |
|
if (errno == ESRCH) |
|
err(1, "%d", pid); |
err(1, "%s", tracefile); |
err(1, "%s", tracefile); |
|
} |
exit(0); |
exit(0); |
} |
} |
|
|