This blog is under construction

Saturday 5 May 2012

raise

Header file:
    signals.h

Synopsis:
     int raise(int sig);

Description:
     It sends the signal sig to the caller and returns non-zero on failure.


Sample program for raise in C:



  #include<stdio.h>
  #include<stdlib.h>
  #include<signal.h>

  static void sig_alarm(int signo) {
        if(signo == SIGUSR1)
                printf("SIGUSR1 catched\n");
        exit(0);
  }

  int main() {
        if(signal(SIGUSR1, sig_alarm) == SIG_ERR)
                printf("Unable to catch SIGALARM\n");
        while(1) {
                sleep(5);
                raise(SIGUSR1);
        }
  }




  Output:
  jp@jp-VirtualBox:~/cpgms/signals$ ./a.out
  SIGUSR1 catched


5 comments:

  1. Are you executing the recovery steps to reset the password in Coinbase account but unable to implement them accurately? If yes, there is nothing to feel bad about as you can easily fix the Coinbase Support NUmber queries in quick seconds under the assistance of skilled and talented professionals by dialing Coinbase support number +1877-330-7540 which is flexible and you can easily get the recovery process in steps at the comfort of your home without worrying about the error. You can reach the team anytime and discuss your issue in detail so that they can serve you the best solutions.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Coinbase has versatile traits but it is still not free from technical flaws and errors. Some of the errors are tiny but others are colossal and need assistance. With the help of Coinbase support, you can resolve your issue from the comfort of your home. All you need to do is dial Coinbase support number and avail all the appropriate solutions related to the errors. The adroit administrators are functional round the clock for assistance. The team is always at your service as you can knock their doors around the clock.

    ReplyDelete
  5. Do you need Finance? Are you looking for Finance? Are you looking for finance to enlarge your business? We help individuals and companies to obtain finance for business expanding and to setup a new business ranging any amount. Get finance at affordable interest rate of 3%, Do you need this finance for business and to clear your bills? Then send us an email now for more information contact us now via (financialserviceoffer876@gmail.com) whats-App +918929509036 Dr James Eric Finance Pvt Ltd Thanks

    ReplyDelete