Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

signals

Terminating an infinite loop

August 10, 2022 by Magenaut

I have a command that I want to have run again automatically each time it terminates, so I ran something like this:

Categories Q&A, Unix & Linux Tags bash, signals Leave a comment

Why does closing terminal emulator window terminate a bash process with SIGHUP trap changed not to terminate?

August 10, 2022 by Magenaut

In a bash shell in a terminal emulator window of lxterminal, I run

Categories Q&A, Unix & Linux Tags bash, linux, sighup, signals, terminal-emulator Leave a comment

When does the system send a SIGTERM to a process?

August 10, 2022 by Magenaut

My server program received a SIGTERM and stopped (with exit code 0). I am surprised by this, as I am pretty sure that there was plenty of memory for it. Under what conditions does linux (busybox) send a SIGTERM to a process?

Categories Q&A, Unix & Linux Tags busybox, linux, process, signals Leave a comment

What does a program do when it’s sent SIGKILL signal?

August 10, 2022 by Magenaut

When I used killall -9 name to kill a program, the state become zombie. Some minutes later, it stopped really.
So, what’s happening during those minutes?

Categories Q&A, Unix & Linux Tags kill, process-management, sigkill, signals Leave a comment

How does a Segmentation Fault work under-the-hood?

August 10, 2022 by Magenaut

I can’t seem to find any information on this aside from “the CPU’s MMU sends a signal” and “the kernel directs it to the offending program, terminating it”.

Categories Q&A, Unix & Linux Tags kernel, segmentation-fault, shell, signals Leave a comment

limit find output AND avoid signal 13

August 10, 2022 by Magenaut

I have a directory with ~1M files and need to search for particular patterns. I know how to do it for all the files:

Categories Q&A, Unix & Linux Tags find, grep, head, shell, signals Leave a comment

How to stop the loop bash script in terminal?

August 9, 2022 by Magenaut

For example,

Categories Q&A, Unix & Linux Tags bash, signals, trap Leave a comment

“trap … INT TERM EXIT” really necessary?

August 9, 2022 by Magenaut

Many examples for trap use trap ... INT TERM EXIT for cleanup tasks. But is it really necessary to list all the three sigspecs?

Categories Q&A, Unix & Linux Tags bash, shell, signals, trap Leave a comment

Is there any way to exit “less” follow mode without stopping other processes in pipe?

August 9, 2022 by Magenaut

Often times I find myself in need to have the output in a buffer with all the features (scrolling, searching, shortcuts, …) and I have grown accustomed to less.

Categories Q&A, Unix & Linux Tags job-control, less, pipe, shell, signals Leave a comment

Bash script doesn’t see SIGHUP?

August 9, 2022 by Magenaut

I’ve got the following script:

Categories Q&A, Unix & Linux Tags bash, signals Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress