14 lines
2.4 KiB
HTML
14 lines
2.4 KiB
HTML
<?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 & $0
|
||
&</b>) on any Unix system, or occasionally created by an
|
||
egregious coding bug. A fork bomb process ‘explodes’ 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>
|