Package org.jruby
Class RubyProcess
java.lang.Object
org.jruby.RubyProcess
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static interfacestatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate static final RubyProcess.NonNativeErrnoprivate static final RubyProcess.NonNativeErrnoprivate static final MethodHandles.Lookupprivate static final MethodHandleprivate static final MethodHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObjectabort(ThreadContext context, IRubyObject recv, IRubyObject[] args) private static intcheckErrno(Ruby runtime, int result) private static longcheckErrno(Ruby runtime, long result, RubyProcess.NonNativeErrno nonNative) static IRubyObjectclock_getres(ThreadContext context, IRubyObject self, IRubyObject _clock_id) static IRubyObjectclock_getres(ThreadContext context, IRubyObject self, IRubyObject _clock_id, IRubyObject _unit) static IRubyObjectclock_gettime(ThreadContext context, IRubyObject self, IRubyObject _clock_id) static IRubyObjectclock_gettime(ThreadContext context, IRubyObject self, IRubyObject _clock_id, IRubyObject _unit) static RubyModulecreateProcessModule(Ruby runtime) static IRubyObjectdetach(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectstatic IRubyObjectegid(IRubyObject recv) Deprecated.static IRubyObjectegid(ThreadContext context, IRubyObject recv) static IRubyObjectegid_set(Ruby runtime, IRubyObject arg) static IRubyObjectegid_set(IRubyObject recv, IRubyObject arg) Deprecated.static IRubyObjectegid_set(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectstatic IRubyObjecteuid(IRubyObject recv) Deprecated.static IRubyObjecteuid(ThreadContext context, IRubyObject recv) static IRubyObjecteuid_set(Ruby runtime, IRubyObject arg) static IRubyObjecteuid_set(IRubyObject recv, IRubyObject arg) Deprecated.static IRubyObjecteuid_set(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectexec(ThreadContext context, IRubyObject self, IRubyObject[] args) static IRubyObjectexit(IRubyObject recv, IRubyObject[] args) static IRubyObjectexit_bang(IRubyObject recv, IRubyObject[] args) static IRubyObjectfork(ThreadContext context, IRubyObject recv, Block block) static IRubyObjectfork19(ThreadContext context, IRubyObject recv, Block block) static IRubyObjectgetpgid(Ruby runtime, IRubyObject arg) static IRubyObjectgetpgid(IRubyObject recv, IRubyObject arg) Deprecated.static IRubyObjectgetpgid(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectstatic IRubyObjectgetpgrp(IRubyObject recv) Deprecated.static IRubyObjectgetpgrp(ThreadContext context, IRubyObject recv) static IRubyObjectgetpriority(Ruby runtime, IRubyObject arg1, IRubyObject arg2) static IRubyObjectgetpriority(IRubyObject recv, IRubyObject arg1, IRubyObject arg2) Deprecated.static IRubyObjectgetpriority(ThreadContext context, IRubyObject recv, IRubyObject arg1, IRubyObject arg2) private static longgetResolutionForClock(IRubyObject _clock_id, Ruby runtime) Get the time resolution in nanoseconds corresponding to the requested clock.static IRubyObjectgetrlimit(Ruby runtime, IRubyObject arg) static IRubyObjectgetrlimit(IRubyObject recv, IRubyObject arg) Deprecated.static IRubyObjectgetrlimit(ThreadContext context, IRubyObject recv, IRubyObject arg) private static longgetTimeForClock(IRubyObject _clock_id, Ruby runtime) Get the time in nanoseconds corresponding to the requested clock.static IRubyObjectstatic IRubyObjectgid(IRubyObject recv) Deprecated.static IRubyObjectgid(ThreadContext context, IRubyObject recv) static IRubyObjectgid_set(Ruby runtime, IRubyObject arg) static IRubyObjectgid_set(IRubyObject recv, IRubyObject arg) Deprecated.static IRubyObjectgid_set(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectgroups(IRubyObject recv) static IRubyObjectgroups_set(IRubyObject recv, IRubyObject arg) static IRubyObjectinitgroups(IRubyObject recv, IRubyObject arg1, IRubyObject arg2) static IRubyObjectkill(Ruby runtime, IRubyObject[] args) static IRubyObjectkill(IRubyObject recv, IRubyObject[] args) Deprecated.static IRubyObjectkill(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectlast_status(ThreadContext context, IRubyObject recv) private static IRubyObjectmakeClockResolutionResult(Ruby runtime, long nanos, String unit) private static IRubyObjectmakeClockResult(Ruby runtime, long nanos, String unit) static IRubyObjectmaxgroups(IRubyObject recv) static IRubyObjectmaxgroups_set(IRubyObject recv, IRubyObject arg) private static intparseSignalString(Ruby runtime, String value) static IRubyObjectstatic IRubyObjectpid(IRubyObject recv) Deprecated.static IRubyObjectpid(ThreadContext context, IRubyObject recv) static IRubyObjectstatic IRubyObjectppid(IRubyObject recv) Deprecated.static IRubyObjectppid(ThreadContext context, IRubyObject recv) private static intpthreadKillable(ThreadContext context, ToIntFunction<ThreadContext> blockingCall) private static voidraiseErrnoIfSet(Ruby runtime, RubyProcess.NonNativeErrno nonNative) private static intrlimitResourceName2int(String name, int casetype) private static intrlimitResourceType(Ruby runtime, IRubyObject rtype) private static intrlimitResourceValue(Ruby runtime, IRubyObject rval) private static intrlimitTypeByHname(String name) static IRubyObjectsetpgid(Ruby runtime, IRubyObject arg1, IRubyObject arg2) static IRubyObjectsetpgid(IRubyObject recv, IRubyObject arg1, IRubyObject arg2) Deprecated.static IRubyObjectsetpgid(ThreadContext context, IRubyObject recv, IRubyObject arg1, IRubyObject arg2) static IRubyObjectstatic IRubyObjectsetpgrp(IRubyObject recv) Deprecated.static IRubyObjectsetpgrp(ThreadContext context, IRubyObject recv) static IRubyObjectsetpriority(Ruby runtime, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) static IRubyObjectsetpriority(IRubyObject recv, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) Deprecated.static IRubyObjectsetpriority(ThreadContext context, IRubyObject recv, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) static IRubyObjectsetproctitle(IRubyObject recv, IRubyObject name) static IRubyObjectsetrlimit(ThreadContext context, IRubyObject recv, IRubyObject resource, IRubyObject rlimCur) static IRubyObjectsetrlimit(ThreadContext context, IRubyObject recv, IRubyObject resource, IRubyObject rlimCur, IRubyObject rlimMax) static IRubyObjectstatic IRubyObjectsetsid(IRubyObject recv) Deprecated.static IRubyObjectsetsid(ThreadContext context, IRubyObject recv) static RubyFixnumspawn(ThreadContext context, IRubyObject recv, IRubyObject[] args) static voidstatic IRubyObjectstatic IRubyObjecttimes(IRubyObject recv, Block unusedBlock) Deprecated.static IRubyObjecttimes(ThreadContext context, IRubyObject recv, Block unusedBlock) static IRubyObjectstatic IRubyObjectuid(IRubyObject recv) Deprecated.static IRubyObjectuid(ThreadContext context, IRubyObject recv) static IRubyObjectuid_set(Ruby runtime, IRubyObject arg) static IRubyObjectuid_set(IRubyObject recv, IRubyObject arg) Deprecated.static IRubyObjectuid_set(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectwait(Ruby runtime, IRubyObject[] args) static IRubyObjectwait(IRubyObject recv, IRubyObject[] args) Deprecated.static IRubyObjectwait(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectwait2(IRubyObject recv, IRubyObject[] args) Deprecated.static IRubyObjectwait2(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectstatic IRubyObjectwaitall(IRubyObject recv) Deprecated.static IRubyObjectwaitall(ThreadContext context, IRubyObject recv) static longstatic IRubyObjectwaitpid(Ruby runtime, IRubyObject[] args) static IRubyObjectwaitpid(IRubyObject recv, IRubyObject[] args) Deprecated.static IRubyObjectwaitpid(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectwaitpid2(Ruby runtime, IRubyObject[] args) static IRubyObjectwaitpid2(IRubyObject recv, IRubyObject[] args) Deprecated.static IRubyObjectwaitpid2(ThreadContext context, IRubyObject recv, IRubyObject[] args)
-
Field Details
-
CLOCK_MONOTONIC
- See Also:
-
CLOCK_REALTIME
- See Also:
-
CLOCK_UNIT_NANOSECOND
- See Also:
-
CLOCK_UNIT_MICROSECOND
- See Also:
-
CLOCK_UNIT_MILLISECOND
- See Also:
-
CLOCK_UNIT_SECOND
- See Also:
-
CLOCK_UNIT_FLOAT_MICROSECOND
- See Also:
-
CLOCK_UNIT_FLOAT_MILLISECOND
- See Also:
-
CLOCK_UNIT_FLOAT_SECOND
- See Also:
-
CLOCK_UNIT_HERTZ
- See Also:
-
NATIVE_THREAD_SIGNAL
-
NATIVE_THREAD_CURRENT
-
LOOKUP
-
ECHILD
-
IGNORE
-
-
Constructor Details
-
RubyProcess
public RubyProcess()
-
-
Method Details
-
createProcessModule
-
abort
-
exit_bang
-
groups
-
last_status
-
setrlimit
public static IRubyObject setrlimit(ThreadContext context, IRubyObject recv, IRubyObject resource, IRubyObject rlimCur) -
setrlimit
public static IRubyObject setrlimit(ThreadContext context, IRubyObject recv, IRubyObject resource, IRubyObject rlimCur, IRubyObject rlimMax) -
rlimitResourceValue
-
rlimitResourceType
-
rlimitResourceName2int
-
rlimitTypeByHname
-
getpgrp
Deprecated. -
getpgrp
-
getpgrp
-
groups_set
-
waitpid
Deprecated. -
waitpid
-
waitpid
-
waitpid
-
pthreadKillable
private static int pthreadKillable(ThreadContext context, ToIntFunction<ThreadContext> blockingCall) -
wait
Deprecated. -
wait
-
wait
-
waitall
Deprecated. -
waitall
-
waitall
-
setsid
Deprecated. -
setsid
-
setsid
-
setpgrp
Deprecated. -
setpgrp
-
setpgrp
-
egid_set
Deprecated. -
egid_set
-
egid_set
-
euid
Deprecated. -
euid
-
euid
-
uid_set
Deprecated. -
uid_set
-
uid_set
-
gid
Deprecated. -
gid
-
gid
-
maxgroups
-
getpriority
@Deprecated public static IRubyObject getpriority(IRubyObject recv, IRubyObject arg1, IRubyObject arg2) Deprecated. -
getpriority
public static IRubyObject getpriority(ThreadContext context, IRubyObject recv, IRubyObject arg1, IRubyObject arg2) -
getpriority
-
uid
Deprecated. -
uid
-
uid
-
waitpid2
-
waitpid2
-
initgroups
-
maxgroups_set
-
ppid
Deprecated. -
ppid
-
ppid
-
gid_set
Deprecated. -
gid_set
-
gid_set
-
wait2
Deprecated. -
wait2
-
euid_set
Deprecated. -
euid_set
-
euid_set
-
setpriority
@Deprecated public static IRubyObject setpriority(IRubyObject recv, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) Deprecated. -
setpriority
public static IRubyObject setpriority(ThreadContext context, IRubyObject recv, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) -
setpriority
public static IRubyObject setpriority(Ruby runtime, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) -
setpgid
Deprecated. -
setpgid
public static IRubyObject setpgid(ThreadContext context, IRubyObject recv, IRubyObject arg1, IRubyObject arg2) -
setpgid
-
getpgid
Deprecated. -
getpgid
-
getpgid
-
getrlimit
Deprecated. -
getrlimit
-
getrlimit
-
egid
Deprecated. -
egid
-
egid
-
parseSignalString
-
kill
Deprecated. -
kill
-
kill
-
detach
-
times
Deprecated. -
times
-
times
-
clock_gettime
public static IRubyObject clock_gettime(ThreadContext context, IRubyObject self, IRubyObject _clock_id) -
clock_gettime
public static IRubyObject clock_gettime(ThreadContext context, IRubyObject self, IRubyObject _clock_id, IRubyObject _unit) -
exec
-
getTimeForClock
Get the time in nanoseconds corresponding to the requested clock.- Throws:
RaiseException
-
getResolutionForClock
private static long getResolutionForClock(IRubyObject _clock_id, Ruby runtime) throws RaiseException Get the time resolution in nanoseconds corresponding to the requested clock.- Throws:
RaiseException
-
makeClockResult
-
clock_getres
public static IRubyObject clock_getres(ThreadContext context, IRubyObject self, IRubyObject _clock_id) -
clock_getres
public static IRubyObject clock_getres(ThreadContext context, IRubyObject self, IRubyObject _clock_id, IRubyObject _unit) -
makeClockResolutionResult
-
pid
Deprecated. -
pid
-
pid
-
fork
-
fork19
-
spawn
-
exit
-
setproctitle
-
syswait
-
checkErrno
-
checkErrno
-
raiseErrnoIfSet
-
waitpid2
Deprecated.
-