提交 5ac08bec 编写于 作者: K Kohsuke Kawaguchi

improving error diagnostics

上级 4c34e4cd
......@@ -76,10 +76,9 @@ public class UnixLifecycle extends Lifecycle {
}
// exec to self
LIBC.execv(
Daemon.getCurrentExecutable(),
new StringArray(args.toArray(new String[args.size()])));
throw new IOException("Failed to exec "+LIBC.strerror(Native.getLastError()));
String exe = Daemon.getCurrentExecutable();
LIBC.execv(exe, new StringArray(args.toArray(new String[args.size()])));
throw new IOException("Failed to exec '"+exe+"' "+LIBC.strerror(Native.getLastError()));
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册