From: mame@ruby-lang.org
To: ruby-dev@ruby-lang.org
Subject: [ruby-dev:50617] [Ruby trunk Bug#5897][Rejected] RubyからWinAPIのCreateProcessを使ったときに引数を間違えるとバグがでる
Date: Thu, 09 Aug 2018 08:22:54 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-73416.20180809082253.e44d2d44bf87d6c9@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-5897.20120115182120@ruby-lang.org
Issue #5897 has been updated by mame (Yusuke Endoh).
Status changed from Feedback to Rejected
本日の開発者会議でこのチケットを議論しましたが、このAPIはFFIの薄いラッパなので、特に[BUG]を防ぐ予定はないとのことでした。
----------------------------------------
Bug #5897: RubyからWinAPIのCreateProcessを使ったときに引数を間違えるとバグがでる
https://bugs.ruby-lang.org/issues/5897#change-73416
* Author: uy (西行寺 うゆ)
* Status: Rejected
* Priority: Normal
* Assignee: usa (Usaku NAKAMURA)
* Target version:
* ruby -v: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
require 'Win32API'
CreateProcess = Win32API.new('kernel32', 'CreateProcess', %w(ipiiiiiipp), 'i')
NULL = 0
FALSE = 0
lpCommandLine = ""
CreateProcess.call(
NULL,
lpCommandLine,
NULL,
NULL,
FALSE,
FALSE,
NULL,
NULL,
"",
0
)
引数は間違えないのが理想ですが
間違ったときには[BUG]じゃなくてエラーメッセージがいいんじゃないかなと
--
https://bugs.ruby-lang.org/
prev parent reply other threads:[~2018-08-09 8:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-5897.20120115182120@ruby-lang.org>
2012-01-17 5:20 ` [ruby-dev:45138] [ruby-trunk - Bug #5897][Feedback] RubyからWinAPIのCreateProcessを使ったときに引数を間違えるとバグがでる Nobuyoshi Nakada
2012-02-01 16:36 ` [ruby-dev:45171] [ruby-trunk - Bug #5897] RubyからWinAPIのCreateProcessを使ったときに引数を間違えるとバグがでる 西行寺 うゆ
2018-08-09 8:22 ` mame [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-73416.20180809082253.e44d2d44bf87d6c9@ruby-lang.org \
--to=ruby-dev@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).