Questions tagged [process]

A process is an instance of a computer program that is being executed.

407 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer
7k views

Killed process blocks TCP ports

I've had this issue on several machines. Is there some way to free this blocked port? Here is an example: Let me explain. I've killed some JAVA-Process on SUSE Linux Enterprise Server 11 SP4, which ...
mstrd308's user avatar
5 votes
1 answer
2k views

Apart from USR1 and USR2, which signals can I safely use for custom interrupting behavior? (in python)

I have a complex application with USR1 and USR2 already defined as having a well-defined and not replaceable purpose. There are tons of different signals in linux. Might there be another one (maybe a ...
fstab's user avatar
  • 890
5 votes
0 answers
2k views

Strange cpu usage values reported by pidstat

I have a script that reports the cpu usage of a specific program reading values from pidstat. The script launches as: pidstat -C ^frontend$ -h -l -p ALL 1 1 The values reported this way sometimes ...
kali's user avatar
  • 161
5 votes
1 answer
2k views

Why nautilus in background takes so much IO and CPU when login, and how to resolve that, or is that a bug?

I'm using Arch Linux for some time. I find nautilus will be running automatically when I login because it's used for handling desktop's behavior. If I kill it, then trash icon and all other file's ...
TorosFanny's user avatar
4 votes
0 answers
795 views

`thumbnail.so` preventing from ejecting USB

What is what thumbnail.so process, what does it belong to and why is it locking usb stick from ejecting? (the system is debian Buster with KDE)
atapaka's user avatar
  • 541
4 votes
2 answers
719 views

Make one program use a special resolv.conf

I want to cheat a program to use a special /etc/resolv.conf file, that in turn will force it to use a nonstandard nameserver. The obvious solution is to recreate the whole filesystem except one file ...
ZAB's user avatar
  • 201
4 votes
0 answers
238 views

For a process, what are the differences between a controlling terminal and non-controlling terminal?

For a process, what are the differences between a controlling terminal and non-controlling terminal? If a process calls open() on a terminal's device file, will the terminal become the controlling ...
Tim's user avatar
  • 102k
4 votes
0 answers
823 views

Why doesn't the Gnome System Monitor show all memory usage?

In the Gnome System Monitor, it doesn't show my virtualbox process, which is running a VM using 4GB (out of 16GB) !! I even sorted the processes by memory size. But in htop, everything seems correct. ...
Matt's user avatar
  • 141
4 votes
1 answer
1k views

why is CAP_SYS_ADMIN needed for CLONE_NEWPID?

man 2 unshare tells us Use of CLONE_NEWPID requires the CAP_SYS_ADMIN capability and the suggested reading for further information man 7 pid_namespaces does not really discuss the presumable risk ...
humanityANDpeace's user avatar
4 votes
0 answers
599 views

Theoric: How to kill a forever forking process?

Let's say you have a process that forks every time it has the chance. It launches itself in niceness -20, so it forks faster than you can kill it. Also, it remembers its childrens and it parents, so ...
blue112's user avatar
  • 617
4 votes
0 answers
142 views

Disable networking only inside of a single terminal

I want to run a command in the terminal to disable networking, just in that terminal. How can that be accomplished? I'm running OSX. Note: I only want to disable the networking in that terminal. ...
ademartini's user avatar
4 votes
1 answer
212 views

Parent restarted by child doesn't respond to CTRL-C

I wrote a program. It starts a process (call it A) that spawns a child process (call it D) that shutdowns and restarts A. Problem is, now I can't kill A nicely from the terminal (ie. CTRL-C isn't ...
Ethan's user avatar
  • 141
4 votes
0 answers
2k views

Monitor the creation of new processes

I want to get a notification whenever a new process is created. I've tried to use inotify on /proc, but it didn't report any event even though a new directory appeared in /proc. I could list the /...
linuser's user avatar
  • 126
4 votes
2 answers
2k views

API Monitoring and Hooking

I am currently reading the "Malware Analyst's Cookbook and DVD". There is a chapter "Dynamic Analysis" and there are also some recipes about hooking and monitoring API calls of process but it is for ...
Greeneco's user avatar
  • 401
4 votes
0 answers
364 views

Can I get WCHAN from ps on Mac OS X 10.7.4?

From the manual it seems that ps -AO wchan should tell me what everything is sleeping on, but everything comes up as -. (And nwchan as 0). Did they do away with the old sleep()/tsleep() interface in ...
LHMathies's user avatar
  • 141
3 votes
0 answers
96 views

How to understand the following quote from termios description

I'm using Mac, following quote is from man termios: When a controlling terminal becomes associated with a session, its foreground process group is set to the process group of the session leader. To ...
mzoz's user avatar
  • 155
3 votes
0 answers
395 views

Linux: Is there a limit for the number of fork() calls one process goup can issue? (Not per user!)

We have a strange problem on a SuSE Linux Enterprise Server 12.5 system (kernel 4.12.14-122.60), which is the only KVM guest in a simliar KVM host: One service started by systemd starts one program -&...
Stefan Brunthaler's user avatar
3 votes
0 answers
353 views

How to run a child process inside firejail sandbox?

Hello Linux folks i need help running with firejail with a java program that is in sandbox firejail --private --trace java -jar program.jar But this program can't spawn child process (chromium) due to ...
geek's user avatar
  • 177
3 votes
1 answer
1k views

How to check if process with pid X is the one you expect

In our application, we start some background processes. The pid of these processes is saved to a file. pids values are re-used when the maximum is reached or when the system is rebooted. How can I ...
carl verbiest's user avatar
3 votes
0 answers
1k views

How do I find the PID of the active window, where the application is a flatpak?

I can find the information easily for regular applications with something like: xdotool getactivewindow getwindowname xdotool getactivewindow getwindowpid VLC media player 28448 However with the ...
Merritt's user avatar
  • 221
3 votes
2 answers
267 views

monitor IO of a running user's executable file read/write

How to monitor IO of file read/write by a running user executable's, just like Windows Process monitor when being set to file-related monitoring only ?
user avatar
3 votes
1 answer
1k views

How do I find what process is running in a particular GNU screen window?

Problem I need to find what process is running on a particular window in screen (in a reasonable amount of time). Scenario I need to use the Session Name and Window Title to find the process ...
UrsineRaven's user avatar
3 votes
0 answers
3k views

Bash: kill process and all subprocesses without using group id

TL;DR, I need a way to kill a process and all descendant processes, without killing siblings with the same group id, without output printed in the terminal, and with a non-zero exit code. I have a ...
quantumbutterfly's user avatar
3 votes
0 answers
758 views

Perf Tool monitoring by PID

I'm using linux perf tool to monitor the performance of some processes. The documentation tells that you can flag it to collect profiles on per-thread, per-process and per-cpu basis. I get that the ...
Nikhilesh Singh's user avatar
3 votes
0 answers
921 views

htop: any way to see a sorted tree view from a sub level?

When using htop, I generally find that viewing process sorted by RES makes most sense when looking for performance and other issues in macOS. One problem I have is that Google Chrome (and other ...
ylluminate's user avatar
3 votes
1 answer
1k views

How can I show the full process name in iotop?

I am using iotop to see which processes are reading from the disk. The process name column is small and some of the names are truncated: gvfsd-tra~ec_spaw/1 gnome-sof~n-service gnome-key~1,secrets ...
newguy's user avatar
  • 131
3 votes
0 answers
635 views

How to make strace keep following children after the death of the father/mother:))?

I use this command to trace all the things that are done or started from a shell. sudo strace -e trace=memory -o outm -ff -p <the pid of the terminal instance I want to trace> -f But the ...
yukashima huksay's user avatar
3 votes
1 answer
1k views

Does a context switch occurs when an interrupt is fired?

A process's virtual address space contains 1 GB of kernel space: Now I assume that this 1 GB of kernel space points to data and code related to the kernel (including the Interrupt Descriptor Table (...
rony_t's user avatar
  • 151
3 votes
0 answers
1k views

Write to stdin of running process on occasion

From time to time I want to send some text to the input of netcat. Netcat will send it then to another netcat process (either on my machine or a local network), but now I am only concerned with the ...
Al.G.'s user avatar
  • 269
3 votes
0 answers
202 views

Unix OSX invisible process, how do I identify further information?

Using execsnoop -v, I note a dtrace error for two processes. ID3 (ID 630) and ID2 (ID 360). ~ 03:59 am ∆:ps -p 260 PID TTY TIME CMD 260 ?? 0:02.36 /usr/libexec/UserEventAgent (Aqua) ...
Cam_Aust's user avatar
  • 131
3 votes
1 answer
1k views

How to tell whether a process is network I/O intensive or not in user mode in Linux?

I am currently writing a program in Linux which needs to tell whether a specific process is network I/O intensive or not at runtime. I have tried some tools such as iotop and iftop, but none of them ...
Jenson's user avatar
  • 161
3 votes
1 answer
1k views

Ubuntu: Process vfs-worker taking all CPU resources

My Cloud9 (Ubuntu-based cloud IDE) began to be unresponsive after I tried to save some files (they didn't save to my cloud workspace). It shows 100% CPU utilization and a process that takes all CPU ...
Peter Gerhat's user avatar
  • 1,212
3 votes
0 answers
98 views

Find which process is being joined by another?

If I have opened Nautilus and spawned a new Nautilus instance, a new PID is created for the new Nautilus instance. Shortly after, the instance is joined with the main Nautilus program running. Main ...
Pithikos's user avatar
  • 3,294
3 votes
0 answers
57 views

Identify process

Every couple of minutes my Mac OSX machine starts running a process that consumes 10% of the CPU. It runs for a couple of seconds and then stops. I can see the process coming up in 'Top', but the name ...
Vincent's user avatar
  • 2,898
3 votes
0 answers
258 views

Is it possible to make an exec call that "returns"?

Is there a way to make the exec system call work like a function call that returns instead of totally replacing the current process image? My motivation is trying to integrate two shells with ...
hugomg's user avatar
  • 5,777
3 votes
1 answer
1k views

Configure job to expire

I'm learning Linux at the moment and were doing some exercises scheduling jobs with cron and crontab, but I'm wondering if it's possible to limit the amount of times that the scheduled job is ran. ...
camria's user avatar
  • 31
3 votes
0 answers
427 views

Kill a whole process tree regardless different GIDs

I am having issues with process control using the signals available to the process abstraction. In the example below you can see there is a perl script which is the parent of the whole tree with a ...
BryanK's user avatar
  • 783
3 votes
0 answers
246 views

Cgroups - memory subsystem

I want to set the memory.limit_in_bytes parameter for a control group and disable OOM, so processes freeze when the limit is reached. That said, I want to change that limit dynamically based on ...
fabiux's user avatar
  • 31
3 votes
0 answers
881 views

CGroup Processes Not Terminated even when main process has been killed through Systemctl stop command

I am running systemctl stop process command for some process. Please find the output for systemctl status process below: Loaded: loaded Active: deactivating (stop-sigterm) CGroup: name=systemd:...
Sandeep Singh's user avatar
3 votes
0 answers
1k views

gnome-terminal cmd leaving processes open after closing parent window

The following simple command should demonstrate my issue: gnome-terminal --tab -t "Tab 1" -e "/bin/bash" --tab -t "Tab 2" -e "/bin/bash" This should open a new window with two tabs and an active ...
Joe's user avatar
  • 31
3 votes
0 answers
372 views

How to find current chroot jail path on Linux <2.6.26

While running kernel 2.6.26 or newer it's possible to get the path of the current chroot jail by comparing the mountinfo of the current process and the init process. Is there a way to get the same ...
l0b0's user avatar
  • 51.4k
3 votes
2 answers
457 views

Why is "A stop job is running" a good design choice?

In a typical modern Linux distribution, the user may experience this when trying to shut down the computer: A stop job is running for Session c2 of user, or equivalent. I understand the idea behind ...
AlphaCentauri's user avatar
2 votes
1 answer
360 views

How to check whether a shell process has job-control enabled?

Is there a way to programmatically check whether a given (shell) process has job-control enabled?
ivan's user avatar
  • 1,878
2 votes
1 answer
539 views

How does round-robin scheduling and context switching work from a low-level?

Using round-robin scheduling, the kernel provides time slices for different processes / tasks. It seems that the kernel will initialize a timer, and when the timer times out, this will cause the ...
Engineer999's user avatar
  • 1,151
2 votes
0 answers
141 views

Large process id on rocky linux 8.5

I started using rocky linux 8.5, I have added cron to reboot this server everyday. server reboots everyday. When I start some application on this server the process id I get is very large. It don't ...
HappyAC's user avatar
  • 21
2 votes
0 answers
1k views

Get Window ID from PID [Wayland and X]

I saw this post here and wanted to know if there's any way to also implement the same idea - getting Window ID from PID in Wayland (or preferably, something that is protocol agnostic). X has xdotool ...
Revise's user avatar
  • 123
2 votes
0 answers
1k views

Why PID 1 send SIGTERM

I had this problem for a few days. A process, in this case qbittorrent, will stop after a few minutes. Looking at logs it seems that it just caught a SIGTERM. Alright so I used strace -p {PID} -e '...
PabPabPab's user avatar
2 votes
0 answers
597 views

Which process generated specific DNS query?

Context: I have a few Mac OS laptops, Catalina 10.15. I noticed suspicious DNS requests in our firewall logs (capable of showing DNS queries), and traced the source IPs to these Mac Books. I checked ...
Washuu's user avatar
  • 151
2 votes
0 answers
185 views

Load a core dump continue running

I can create a coredump as a snapshot of a process's image and continue running. Can I then, on another run of the program load the coredump and continue at that same point in time? If so how? ...
wcochran's user avatar
  • 121
2 votes
0 answers
384 views

How to send SIGSTOP/SIGCONT to focused window/process?

I'm using Manjaro Linux with bspwm and sxhkd. The process to send SIGSTOP/SIGCONT to can be a single terminal or something with children such as Firefox. I want to freeze the Firefox window I'm ...
ChocolateOverflow's user avatar

1
2 3 4 5
9