Add setlock to chpst.c
Created attachment 447 [details] Patch to add locking functionality
Does not apply to current git: # patch -p0 </.2/dl/runit.diff patching file runit/chpst.c Hunk #1 FAILED at 32. Hunk #2 FAILED at 57. Hunk #3 FAILED at 185. Hunk #4 FAILED at 309. Hunk #5 FAILED at 317. Hunk #6 FAILED at 326. Hunk #7 FAILED at 343. Hunk #8 FAILED at 369. Hunk #9 FAILED at 413. 9 out of 9 hunks FAILED -- saving rejects to file runit/chpst.c.rej patching file runit/Config.in Hunk #1 succeeded at 62 (offset 17 lines). patching file include/applets.h Hunk #1 FAILED at 314. 1 out of 1 hunk FAILED -- saving rejects to file include/applets.h.rej patching file include/usage.h Hunk #1 FAILED at 366. Hunk #2 FAILED at 377. Hunk #3 FAILED at 406. 3 out of 3 hunks FAILED -- saving rejects to file include/usage.h.rej Can you rediff it against current git?
(In reply to comment #2) > Can you rediff it against current git? Working on it.
Created attachment 559 [details] Patch of chpst.c against more recent version
> Patch of chpst.c against more recent version Which version exactly? --- chpst.c.orig 2009-07-09 13:58:01.000000000 -0700 +++ chpst.c.new 2009-08-02 07:40:58.000000000 -0700 There is no chpst.c.new file in the tree. Thus, patch can't be applied without hand-fixing. Generally, patches should be in this format: diff -d -urpN busybox.0/miscutils/beep.c busybox.1/miscutils/beep.c --- busybox.0/miscutils/beep.c 2009-08-22 14:52:14.000000000 +0200 +++ busybox.1/miscutils/beep.c 2009-08-22 17:57:53.000000000 +0200 so that they apply cleanly with "patch -p1 <patch" in the top directory of the source tree. After fixing that, I got: # patch -p0 </tmp/chpst.diff patching file chpst.c Hunk #6 FAILED at 202. 1 out of 7 hunks FAILED -- saving rejects to file chpst.c.rej
The tree to base patch on can be obtained using git clone git://busybox.net/busybox.git