Reimplement job control patch with libuv