るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.035秒)

別のキーワード

  1. process fork
  2. process abort
  3. process setrlimit
  4. tracer display_process_id=
  5. tracer display_process_id

ライブラリ

クラス

モジュール

検索結果

Process.#egid=(gid) (27106.0)

カレントプロセスの実効グループ ID を gid に設定します。

...ません。

@param gid 実効グループ ID を整数で指定します。

@raise Errno::EXXX 権限がない場合に発生します。

@raise NotImplementedError メソッドが現在のプラットフォームで実装されていない場合に発生します。

@see Process::GID.#eid=...

BasicSocket#getpeereid -> [Integer, Integer] (12.0)

Unix ドメインソケットにおいて接続相手の euid と egid を 返します。

...です。

require 'socket'

Socket.unix_server_loop("/tmp/sock") {|s|
begin
euid, egid = s.getpeereid

# Check the connected client is myself or not.
next if euid != Process.uid

# do something about my resource.
ensure
s.close
end
}...