DragonFly submit List (threaded) for 2004-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: patch to make script(1) exit cleanly on reciept of signal
:On Sat, 27 Mar 2004 19:23:17 -0800
:Chris Pressey <cpressey@xxxxxxxxxxxxxxx> wrote:
:
:> http://catseye.webhop.net/DragonFlyBSD/patch/script.diff
:
:OK, now that I've convinced myself that I understand the rationale
:behind each part of it, here is the patch to script(1) redone as per
:Matt's suggestion #2 to address the race condition before select().
:
:-Chris
Looks good. One change and you are done... a flushtime of 0 is
now illegal (because that will cause the select() to poll and
script to go into a cpu-bound loop), so change the flushtime < 0
test to flushtime <= 0.
-Matt
Matthew Dillon
<dillon@xxxxxxxxxxxxx>
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]