Questions tagged [forking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

Can you prevent fork bomb on Windows?

On Linux i can set limits in /etc/security/limits.conf to prevent fork bomb. How can you prevent fork bomb like this %0|%0 on windows?
0
votes
0answers
185 views

What is the difference between “screen -dm” and “screen -Dm”

I'm been looking for an explanation for the difference between screen's -dm and -Dm options. I know that both options are used to make the screen run in the background / detach it after creation. I've ...
1
vote
1answer
201 views

Measuring peak memory usage: equivalent of /usr/bin/time -v including child/forked processes

I have been making use of the /usr/bin/time -v construct for a while now in order to determine the peak RAM usage of programs that I create. Lately I have been making some python programs that make ...
0
votes
1answer
684 views

How to attach background process to systemctl service's CGroup

let me explain a little bit more. I have a service on CentOS 7 that launches a sh script. The script then forks to let's say 4 other child processes. If one dies, I want to launch it from another ...
0
votes
1answer
1k views

Fork A Repo via GitHub API by curl

How to fork a Repo via GitHub API? I'm looking at GitHub Fork API doc at https://developer.github.com/v3/repos/forks/#create-a-fork and I'm quite confused as how to do it. Create a fork Create ...
3
votes
2answers
1k views

How to kill bash fork bomb

Recently I unintentionally created and run a fork bomb in bash. It was a slow one, in comparison to other fork bombs, I had plenty of time to do something. But there were already several hundreds of ...
1
vote
0answers
122 views

How to get exit code of a subprocess?

So, I have process B. Typically, process B is called and ran entirely with the context of process A. Unfortunately, for some reason, process B has stopped running properly when called by A, but it ...
1
vote
1answer
135 views

who forks when the applications are double clicked on Linux?

So I know when in shell and I run an executable then shell forks it into a child process and later exec's to get the program and data memory of my executable. So if my shell is now closed/exited then ...
0
votes
2answers
320 views

Can't do proper git pull request

I'm new to GitHub and therefore I messed a lot with it, so I need some step-by-step help. Sorry for being annoying :/ Also, before I say anything, I'd have to clarify that I used only GitHub, because ...
134
votes
3answers
13k views

How and why is this string of text a fork bomb?

Found on a random chan board: echo "I<RA('1E<W3t`rYWdl&r()(Y29j&r{,3Rl7Ig}&r{,T31wo});r`26<F]F;==" | uudecode Somehow running this this results in an infinitely spawning process ...
0
votes
1answer
722 views

PHP: how to keep I/O accessible in parent after pcntl_fork()'s child has completed?

I'm using PHP and pcntl_fork(). The idea is that the parent forks and pauses for the child to complete; the child does a task then terminates; the parent can check the return code for the task or the ...
3
votes
1answer
1k views

How to deal with a memory-leaking fork bomb on Linux?

I know that a fork bomb can be prevented by limiting the number of processes of a single user, and memory leaking will not freeze my OS for Linux has OOM killer. But how about a memory-leaking fork ...
0
votes
0answers
139 views

Why creating a process is a two-step process (fork-exec)?

I'm studying Tanenbaum's "Modern Operating Systems" book and he's explaining that: The reason for this two-step process is to allow the child to manipulate its file descriptors after the fork but ...
0
votes
1answer
798 views

When a parent uses fork, the child process is created in a continuous memory space?

When forking, the exact environment of the parent process gets copied. Is that space allocated in a random space in RAM or the parent and child processes are getting continuous RAM space (like array ...
1
vote
1answer
289 views

Easiest way to fork a nonGitHub git repo to a GitHub repo?

For example, I'd like to fork a GNU Savannah git repo, and use GitHub's pull request button to signal GNU Savannah that I'd like to submit a patch. Is this possible?
0
votes
1answer
127 views

Github merge PR forked repo into your own repo

I have forked an existing repo into my own repo. Whenever I do a pull request (in my repo), it automatically defaults to the origin repo, and not to the fork I created. How do I get github to default ...
7
votes
2answers
3k views

Are IceWeasel / IceCat just re-brandings, or are they actually different from Firefox / Thunderbird?

As we know, Firefox' branding (name, logo etc.) is non-free copyrighted, so some Linux distributions package (more-)fully-free versions. However, I can't get a straight explanation on Wikipedia (here ...
1
vote
1answer
172 views

Fork processes in a script using different colors for each process output

I have a script that operates on 4 folders. Because they are completely independent, I'm passing in the folder path to a function and then forking that function. It works, but the output to the ...
1
vote
1answer
1k views

Neutralize fork-bomb through ssh

I have access to a server through SSH (namely, it's our informatics server :) ) and ran a fork-bomb there (the bash one). Is there a way to neutralize it remotely? Just using ssh name@server does just ...
34
votes
3answers
13k views

How can I Resync a fork from original

I just forked a project in Github. I made modifications and sent a pull request. The owner merged my fork with the main project and after that he made some modifications. So for now my fork is not ...
2
votes
1answer
2k views

git cannot allocate memory - git svn rebase

I cannot run git svn rebase in my repository as I am getting: Can't fork: Cannot allocate memory at /usr/share/perl5/vendor_perl/Git.pm line 1262 The output of free indicates I have plenty of free ...
7
votes
2answers
279 views

Git branch for instances of a website?

I'm working in a couple of websites, both websites needs almost the same code except for some changes in images and css, or settings. I'm just finished to read the chapter of branchs of Pro Git book ...
35
votes
3answers
48k views

How do I fork a process that doesn't die when shell exits?

If I run emacs from the shell: $ emacs foo & and then kill that shell, emacs dies. How can I run a command so that it will not die when the shell dies? I found references to nohup, but that ...
5
votes
1answer
2k views

Linux / Perl - What happens when a process is forked?

I've read about fork and from what I understand, the process is cloned but which process? The script itself or the process that launched the script? For example: I'm running rTorrent on my machine ...
0
votes
1answer
2k views

Any way to simulate Process.fork() on Windows?

I need to use a library that seems to be making the assumption that Process.fork() is available. On Windows it is not. I tried installing Cygwin with the idea that it might simulate this. Didn't ...
9
votes
3answers
5k views

NetBSD, OpenBSD, *BSD and FreeBSD compared

I recall reading a comparison of NetBSD and FreeBSD a few years back, and in 2000 (okay many) it looked like NetBSD forked processes better, while FreeBSD threaded better, and so, for Apache 1 NetBSD ...