JargonFile/original/html/F/fork-bomb.html

14 lines
2.4 KiB
HTML
Raw Normal View History

2014-03-27 14:54:56 -04:00
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>fork bomb</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../F.html" title="F"/><link rel="previous" href="fork.html" title="fork"/><link rel="next" href="forked.html" title="forked"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">fork bomb</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="fork.html">Prev</a><EFBFBD></td><th width="60%" align="center">F</th><td width="20%" align="right"><EFBFBD><a accesskey="n" href="forked.html">Next</a></td></tr></table><hr/></div><dt><a id="fork-bomb"/><dt xmlns="" id="fork-bomb"><b>fork bomb</b>: <span xmlns="http://www.w3.org/1999/xhtml" class="grammar">n.</span></dt></dt><dd><p> [Unix] A particular species of <a href="../W/wabbit.html"><i class="glossterm">wabbit</i></a> that
can be written in one line of C (<b class="command">main()
{for(;;)fork();</b>}) or shell (<b class="command">$0 &amp; $0
&amp;</b>) on any Unix system, or occasionally created by an
egregious coding bug. A fork bomb process &#8216;explodes&#8217; by
recursively spawning copies of itself (using the Unix system call
<span class="citerefentry"><span class="refentrytitle">fork</span>(2)</span>).
Eventually it eats all the process table entries and effectively wedges the
system. Fortunately, fork bombs are relatively easy to spot and kill, so
creating one deliberately seldom accomplishes more than to bring the just
wrath of the gods down upon the perpetrator. Also called a <span class="firstterm">fork bunny</span>. See also
<a href="../L/logic-bomb.html"><i class="glossterm">logic bomb</i></a>.</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="fork.html">Prev</a><EFBFBD></td><td width="20%" align="center"><a accesskey="u" href="../F.html">Up</a></td><td width="40%" align="right"><EFBFBD><a accesskey="n" href="forked.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">fork<EFBFBD></td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"><EFBFBD>forked</td></tr></table></div></body></html>