Skip to content

Commit

Permalink
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/src/main/java/org/jruby/RubyProcess.java
Original file line number Diff line number Diff line change
@@ -1304,6 +1304,14 @@ public static IRubyObject exit(IRubyObject recv, IRubyObject[] args) {
return RubyKernel.exit(recv, args);
}

@JRubyMethod(name = "setproctitle", module = true, visibility = PRIVATE)
public static IRubyObject setproctitle(IRubyObject recv, IRubyObject name) {
// Not possible for us to implement on most platforms, so we just noop.
name.convertToString();

return name;
}

// This isn't quite right, and should probably work with a new Process + pid aggregate object
public static void syswait(Ruby runtime, int pid) {
int[] status = {0};

0 comments on commit 8136dd9

Please sign in to comment.