Skip to content

Commit

Permalink
Merge pull request #20 from resttime/master
Browse files Browse the repository at this point in the history
Remove static declaration on my_exit
  • Loading branch information
cxxxr authored Sep 9, 2023
2 parents 859db12 + 6eac916 commit 9690530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async-process.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static struct process* allocate_process(int fd, const char *pts_name, int pid)
return process;
}

static void my_exit(int status) {
void my_exit(int status) {
// exitを使うとatexitで動作に影響を与えられる、これが原因でプロセスを終了できなくなる事があるので使うのを避ける
// 例えばSDL2はat_exitを使っているせいか、lemのSDL2 frontendでasync_processが動作しなくなっていた
_exit(status);
Expand Down

0 comments on commit 9690530

Please sign in to comment.