[前][次][番号順一覧][スレッド一覧]

ruby-changes:51771

From: nobu <ko1@a...>
Date: Tue, 17 Jul 2018 10:00:11 +0900 (JST)
Subject: [ruby-changes:51771] nobu:r63983 (trunk): ruby-runner.c: show the failed path

nobu	2018-07-17 10:00:05 +0900 (Tue, 17 Jul 2018)

  New Revision: 63983

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63983

  Log:
    ruby-runner.c: show the failed path

  Modified files:
    trunk/ruby-runner.c
Index: ruby-runner.c
===================================================================
--- ruby-runner.c	(revision 63982)
+++ ruby-runner.c	(revision 63983)
@@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ruby-runner.c#L1
 #define _POSIX_C_SOURCE 200809L
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
@@ -73,5 +74,6 @@ main(int argc, char **argv) https://github.com/ruby/ruby/blob/trunk/ruby-runner.c#L74
     memcpy(p, rubyname, namesize);
 
     execv(rubypath, argv);
+    perror(rubypath);
     return -1;
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]