c program the catches the ctrl-c(SIGINT) Signal for the
first time and prints a output rather and exit on pressing
Ctrl-C again

Answer Posted / dwarf

on Linux:
man 2 signal
for signum use SIGINT

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

560


Explore about environment variables?

599


What does path stand for?

646


Why is the use of shell script?

556


one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

526






Explain how you Automate your application using Shell scripting.

1856


How to pass an argument to a script?

604


What is in a script?

575


What are the different communication commands available in the shell?

523


How do I stop script errors?

585


Given a file find the count of lines containing the word "abc".

969


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2179


Is shell scripting a language?

594


When should shell programming/scripting not be used?

604


Write down the syntax of "for " loop

616