0

I developped, last year, a program in C on my old computer (on Ubuntu) in which I used 3 signals: SIGUSR1, SIGUSR2 and SIGQUIT.

But now, I'm on a new computer (on Windows) and I installed "Bash on Ubuntu on Windows". But in this terminal, when I execute my project's binary, an error occured: "Can't handle SIGUSR1Can't handle SIGUSR2Can't handle SIGQUIT".

Can't handle signal

I understand the problem, but I really dont know how to solve it.
Thanks in advance !

YaatSuka
  • 231
  • 1
  • 9
  • You need to include the smallest sample of code that demonstrates this problem. Good luck. – shellter Sep 28 '17 at 04:10
  • I just use "kill()" and "sigaction()" functions. The problem doesn't come from the program, it come from the terminal "Bash on Ubuntu on Windows" – YaatSuka Sep 28 '17 at 04:13
  • I wouldn't be surprised if there were subtle differences in the way signals are handled on the WSL, compared to "real" Linux. However, I just tried a simple program that uses `signal()` to trap USR1, and it seemed to work as I expected. So I guess we would need to know more about where the failure arises in your program. For example, is the message "Can't handle SIGUSR1" coming from your code, or from the "system" somewhere? – Kevin Boone Sep 28 '17 at 09:00
  • I know my code works, I tested it on a Linux Boot and have been marked on the project. So, I think, it's the "system" or the terminal. But how solve this problem? – YaatSuka Sep 28 '17 at 22:48

0 Answers0