Issue #10551 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r48629.

----------
file.c: unnecessary #undef

* file.c (flock): remove unnecessary #undef flock, trace of green
  thread polling.  patched by Rohan Garg.  [Bug #10551]

----------------------------------------
Bug #10551: Unnecessary #undef in file.c
https://bugs.ruby-lang.org/issues/10551#change-50150

* Author: Rohan Garg
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.2p95 (2014-05-08) [x86_64-linux-gnu]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Hi there
I was just casually looking at the File locking implementation in ruby inside file.c and noticed that there's a unnecessary #undef flock at the end of the function, maybe it really is required, but I couldn't figure out why.

So here's my first patch to ruby, but I'm not totally sure about it. Feel free to correct me if I'm wrong and it really is required, git history didn't tell me much.

---Files--------------------------------
remove_unnecessary_undef.patch (254 Bytes)


-- 
https://bugs.ruby-lang.org/