Skip to content

Commit

Permalink
Get working on FreeBSD which has no SIGPOLL.
Browse files Browse the repository at this point in the history
  • Loading branch information
c-blake committed Jan 4, 2023
1 parent 0305263 commit 453e2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ru.nim
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ parseArg(if nOpt>0: $argv[1] else: getEnv("RU", "hit"))
if fPlain: e0 = ""; e1 = ""
measureOverhead()
for sn in [SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGBUS, SIGFPE, SIGSEGV, SIGPIPE,
SIGALRM, SIGTERM, SIGURG, SIGXCPU, SIGXFSZ, SIGPOLL, SIGSYS]:
SIGALRM, SIGTERM, SIGURG, SIGXCPU, SIGXFSZ, SIGSYS]:
signal(sn, report) # Install report() for most signals
if argc > 1 + nOpt: # Measure the program ...
if (pid = vfork(); pid != 0): # If vfork fails, -1 => so will wait4
Expand Down

0 comments on commit 453e2ff

Please sign in to comment.