Operating System - HP-UX
1825782 Members
2131 Online
109687 Solutions
New Discussion

Re: Doing Ctrl+C while a process is coming up

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Doing Ctrl+C while a process is coming up

Hello,

We start a process and it is coming up.
If we do ctrl+c then, will it do any harm ?

Thanks,
Shiv
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Doing Ctrl+C while a process is coming up

Hi Shiv:

If the process was initiated from the terminal at which you are issuing the CTL_C and the process has not trapped (caught) the signal (INT or signal-2) then the default action is to kill (interrupt) the process.

Regards!

...JRF...
Shivkumar
Super Advisor

Re: Doing Ctrl+C while a process is coming up

I do not want abort or cancel the operation. As after starting the process it was showing some verbose on screen so i just wanted to come out of that screen and wanted to do some other stuff.

So was curious whether my action of ctrl+c would do any harm ?
James R. Ferguson
Acclaimed Contributor
Solution

Re: Doing Ctrl+C while a process is coming up

Hi (again) SHiv:

> So was curious whether my action of ctrl+c would do any harm ?

As I said, by default the CTRL+C sends a SIGINT (INT signal) to the process associated with the terminal where the keys are pressed.

Whether or not the process has chosen to IGNORE the signal or otherwise trap it and perform a specific action (e.g. cleanup temporary files and exit) is entirely up to how the process has been coded.

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Doing Ctrl+C while a process is coming up

>I do not want abort or cancel the operation.

You may want to use control-Z to suspend the program?

Once I either killed or suspended a browser when it was coming up and it hung my workstation. I suppose I could have used rlogin and cleaned things up.