Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 0d244cef41502353818b7ddf77fcf901 > files > 42

yash-doc-2.28-1.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="author" content="magicant">
<meta name="description" content="Yash の suspend 組込みコマンドについて">
<title>Yash マニュアル: suspend 組込みコマンド</title>
<link rel="Contents" href="../index.html" title="目次">
<link rel="Prev" href="shift.html" title="Shift 組込みコマンド">
<link rel="Next" href="test.html" title="Test 組込みコマンド">
<link rel="Stylesheet" href="../style.css">

<div class="breadcrumb"><a href="../index.html">目次</a> >
<a rel="Up" href="index.html">組込みコマンド一覧</a></div>
<h1>Suspend 組込みコマンド</h1>

<p><dfn>Suspend 組込みコマンド</dfn>はシェルを停止 (サスペンド) します。

<h2 id="syntax">構文</h2>
<ul>
<li><code>suspend [-f]</code>
</ul>

<h2 id="description">説明</h2>
<p>Suspend コマンドはシェルプロセスが属するプロセスグループ内のすべてのプロセスに対して SIGSTOP シグナルを送信します。これにより、シグナルを送られた各プロセス (シェル自身を含む) は停止 (サスペンド) 状態になります。停止状態になったプロセスは SIGCONT シグナルを受信すると実行を再開します。
<p>シェルが<a href="../interact.html">対話モード</a>で、さらにシェルプロセスのプロセスグループ ID がセッションリーダーのプロセス ID に等しいときは、<code>-f</code> (<code>--force</code>) オプションを付けない限りシェルは警告を表示し、シグナルを送信しません。これはシェルが停止した後実行を再開させることができなくなってしまうのを未然に防ぐためです。

<h2 id="options">オプション</h2>
<dl>
<dt><code>-f</code>, <code>--force</code>
<dd>警告を無視してシェルを停止します。
</dl>

<h2 id="exitstatus">終了ステータス</h2>
<p>Suspend コマンドの終了ステータスは、SIGSTOP シグナルをシェルに正しく送信できたときは 0、それ以外なら非 0 です。

<h2 id="notes">補足</h2>
<p>POSIX には suspend コマンドに関する規定はありません。