JargonFile/original/html/F/fork-bomb.html
2014-03-27 18:54:56 +00:00

14 lines
2.4 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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> </td><th width="60%" align="center">F</th><td width="20%" align="right"> <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> </td><td width="20%" align="center"><a accesskey="u" href="../F.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="forked.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">fork </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> forked</td></tr></table></div></body></html>