Skip to content

Commit

Permalink
refresh github actions integration; cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
nmisch committed Nov 10, 2024
1 parent d99395d commit 7572324
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/bsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ jobs:
for n in `seq 15`; do ./a.out || echo $?; done
uname -a
echo BARRIER1
cc -DREBLOCK -Wall -xc pending_signal_c ||true
for n in `seq 15`; do ./a.out || echo $?; done
for n in `seq 15`; do RAISE_AFTER_EXEC=1 ./a.out || echo $?; done
echo BARRIER2
perl Makefile.PL
make
Expand Down
13 changes: 10 additions & 3 deletions pending_signal_c
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,18 @@ int main(int argc, char **argv)
}
else
{
char msg[] = "reached write()\n";

if (getenv("RAISE_AFTER_EXEC"))
{
char msg[] = "reached write() w/ RAISE_AFTER_EXEC\n";

raise(SIGTERM);
write(2, msg, sizeof(msg) - 1);
write(2, msg, sizeof(msg) - 1);
}
else
{
char msg[] = "reached write()\n";
write(2, msg, sizeof(msg) - 1);
}
sigpending(&set);
return sigismember(&set, SIGTERM) ? 1 : 2;
}
Expand Down

0 comments on commit 7572324

Please sign in to comment.