Skip to main content

Questions tagged [fork]

8 votes
1 answer
1k views

After a recent update, kate seems to fork a copy of itself, presumably with some parameter which prevents an endless recursion, and then exits. Presumably this was intended to help users who run kate ...
Richard Parkins's user avatar
0 votes
1 answer
96 views

I am working on a process that forks several times. To debug it, I am using a debug file for which I open a fd and which stays the same for all child forks. Then I have a function print_debug, that ...
Bastian's user avatar
  • 25
8 votes
2 answers
674 views

I'm working on a C++ application on Ubuntu 20.04 that uses PCIe DMA to transfer data from a user-space buffer to hardware. The buffer is mapped to a fixed 1K physical memory region via a custom ...
Nungesser Mcmindes's user avatar
0 votes
1 answer
82 views

When a process execs, looking at kernel code for environ_read(), it seems that if the mm_struct doesn't yet exist / is null or the env_end member of that mm_struct is null, environ_read() will return ...
Gregg Leventhal's user avatar
0 votes
0 answers
97 views

TL;DR Why process map in /proc/<pid>/maps does not show where the executed binary is loaded? I am trying to do some post-mortem analysis of the fuzzed program once it finishes. Basically what I ...
sorin the turtle's user avatar
0 votes
1 answer
78 views

I'm using a PHP 8.x script to process a series of images, performing various conversions and resizing tasks. To make the most of the server's multiple cores, I employ the pcntl_fork() function to ...
Adam Ellis's user avatar
-3 votes
1 answer
168 views

why in Linux do we not create a process from scratch, as "init" is created, but create a "fork" of it by the method of branching?
 Шмига Дарина's user avatar
0 votes
0 answers
178 views

I have a Linux server running Ubuntu 18.04 on a VM. Executing any task like ls -l or w frequently takes several seconds to finish. strace -c ls -l says ls only takes a few milliseconds, but running ...
Call of Guitar's user avatar
4 votes
0 answers
78 views

I wrote a network daemon that forks off children to handle TCP connections. On SIGINT the main process triggers a kill for each child in order to clean up and to collect some final statistics. In ...
U. Windl's user avatar
  • 1,777
0 votes
0 answers
55 views

I have a python program that runs as a systemd user service. From that program, I launch external commands via subprocess.Popen(cmd, close_fds=True, start_new_session=True). My intention is for these ...
czert's user avatar
  • 1
0 votes
1 answer
234 views

The GNU Screen manual says: `-d -m' Start `screen' in _detached mode. This creates a new session but doesn't attach to it. This is useful for system startup scripts. ...
Sebastian Carlos's user avatar
2 votes
2 answers
4k views

I have a systemd service which spawns an ffmpeg process any time it detects a new event. These processes are meant to survive and run to completion even if the service is restarted (hence them being ...
plunker's user avatar
  • 87
1 vote
1 answer
202 views

I am using Ubuntu 22.04.1 on WSL 2 (though the fact that it is Unix is only relevant for this question) How come when we run tmux from a zsh session, the process tree (which I have abridged somewhat) ...
Abced Decba's user avatar
1 vote
1 answer
246 views

I'm trying to run a simple one file C program in a Virtual Machine. In fact it is the fork bomb c program: #include <stdio.h> #include <sys/types.h> int main() { while(1) { ...
someone12321's user avatar
0 votes
1 answer
180 views

I had a question while dealing with the issue related to snmp in my project. If you enter the following command to execute snmpd with various options, snmpd will be executed without any problem. $ ...
monster-dev's user avatar

15 30 50 per page
1
2 3 4 5
13