Author Topic: Codeblocks and signal process program  (Read 3822 times)

Offline axxegfx

  • Single posting newcomer
  • *
  • Posts: 3
Codeblocks and signal process program
« on: September 26, 2009, 10:02:14 pm »
I'm making two programs that they can send special signals such as SIGTERM,SIGUSR1,etc.

I don't know what's wrong with it because main program detects the signal but doesn't jump to the special function, otherwise
it offers a backtrace.

"Program received signal SIGUSR1, User defined signal 1. Do you want to view the backtrace ?

References to it in Main program:

          signal(SIGUSR1, sigusr1);

Function:
          void sigusr1(int sig)
          {
                     signal(sig, SIG_IGN);
                     printf("%d\n", rand());
                     signal(sig, sigusr1);
           }

Therefore I need so help in order to clarify what my problem is.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Codeblocks and signal process program
« Reply #1 on: September 26, 2009, 10:38:02 pm »
Find an programming board that supports the compiler you are using and post the question on that forum.

This site DOES NOT support programming questions NOT related to building Code::Blocks or using Code::Blocks.

NOTE: Code::Blocks is an IDE NOT a compiler.

Edit: I suggest turning on Full Compiler Logging to help the other site (you pick) to help you.

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S.

« Last Edit: September 26, 2009, 10:43:50 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Codeblocks and signal process program
« Reply #2 on: September 27, 2009, 11:42:10 am »
Unrelated to Code::Blocks. Try a C/C++ forum. Topic locked.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ