2

With kernel 3.10.55 I can break a Linux boot process by pressing Ctrl + C.

But with the newest kernels (4.1 and 4.4) Ctrl + C in boot time does not work – it displays ^C but does not break init script.

I use Slackware 64 14.1 and have a simple test for it: add in my rc.local file the following commands:

echo "Test for Control-C - if does not work then press Enter"
read 

And I need to press Enter to continue boot process.

Slackware User
  • 21
  • 1
  • 1
  • 2

2 Answers2

0

Finally, I have managed to make Control-C works in the boot time. BUT the solution is a hack :( During boot time the startup scripts have /dev/console as their stdin/stdout and it cannot be tuned by stty. The problem is in setting this device as NOCTTY in kernel module tty_io.c. Simply changing *noctty = 1 to 0 and rebuilding kernel works fine for me.

Slackware User
  • 21
  • 1
  • 1
  • 2
-2

Run

ps aux | grep < your process name >

The first set of numbers in the result list of each line is your pid.

Run

kill < pid number >

To kill that process