ChatGPT - Wait syscall signal handling