From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19101 invoked from network); 30 Jan 2023 16:43:03 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 30 Jan 2023 16:43:03 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 898C24012E; Tue, 31 Jan 2023 02:43:00 +1000 (AEST) Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) by minnie.tuhs.org (Postfix) with ESMTPS id C465B4010C for ; Tue, 31 Jan 2023 02:42:56 +1000 (AEST) Received: by mail-il1-f178.google.com with SMTP id l7so3472314ilf.0 for ; Mon, 30 Jan 2023 08:42:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20210112.gappssmtp.com; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=+ltnjeRX7RChe8PUp3cBCQ3GdkHpVWJtiSWH49tFgj4=; b=F98dj8ZKZklIk1Z9z5gVg+x+JN8BTVm0vupv5RCteeDDI93RDJ9tKuDXhlj6K9xBHo eL3mcz3IeLG47CDxWxTLfxPVrMFAdcwAZli9lNQcDn0TeZGVhCG6Pl3+oXo/4ZwIRXym ihAyJe/u8x4O0Fl0yCkRAkIdBbSltVWX70XSKJHOkAPZP8Y61cpjn2LCJCUdx6IMwqPO oB9cb8WDSPgDPFlJ/goohbE9yoMt4PiYqQ2Msj8HdDH8j02bBNC/+tMCUATtzyLQxchd hh3xrG8Wj9iqbsmowLdrv8xNZL9uesNQzC2BI8bPOJrrlzBhK3PGcr/yzhXOqTDlQsmI k0/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+ltnjeRX7RChe8PUp3cBCQ3GdkHpVWJtiSWH49tFgj4=; b=dmWcBBRSyMc9IZpgl9eB6rLUNc7aRdpbU0uqU9G8ggldj+4jEZ/zXcCCxYrfJndJUI ygnVk0fScYUQLHXUx6aaqNCH5eLf2ujUOtDdIIWioxX8+slBjIq+SFqUSCCdWAf04RRP ouI3Nf2+sCf9zg8O0Qfe7phqTPmVg8x/wP16737V2Z2qv/6Hfn3hMG6MDe0K+f/bV5Jo 2my3OXbEG2FwjqgEgeeCPxiQx6MnSWsacgaKgSYxDZ3gNnRFHouj7dQed4EWjUfRRa3Y svQjNe9ZfExXnxyWQaelRN447njzAmm9tSIHu1ce5YP/UgWc6+rZeiWNKr8jnXLkXEg1 i30Q== X-Gm-Message-State: AO0yUKVRR8hWeXkPZp3iusYxlHcRm6hdc05e5OZGU0jAWtnh/xQ1Tl6N ZK5n0gpo6BiHH8tKZwDo85wXd8sceA752nWJ X-Google-Smtp-Source: AK7set92qdGi7xGs0ekZ2ujH0R4wTn3ujzsWCwycw21OX7Ao6KxFl1RgGdRI754DyPoOw7ucNywz5w== X-Received: by 2002:a05:6e02:1c43:b0:310:fd98:1cc2 with SMTP id d3-20020a056e021c4300b00310fd981cc2mr2207417ilg.13.1675096916111; Mon, 30 Jan 2023 08:41:56 -0800 (PST) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id a8-20020a056e02120800b0031091f2eaacsm4190687ilq.14.2023.01.30.08.41.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 08:41:55 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Bakul Shah Mime-Version: 1.0 (1.0) Date: Mon, 30 Jan 2023 08:41:45 -0800 Message-Id: References: <20230130161857.F2F371FB2F@orac.inputplus.co.uk> In-Reply-To: <20230130161857.F2F371FB2F@orac.inputplus.co.uk> To: Ralph Corderoy X-Mailer: iPad Mail (20D47) Message-ID-Hash: 7VFHFSIG52AU2CIP6PHM4LQ2DPXTXX5Q X-Message-ID-Hash: 7VFHFSIG52AU2CIP6PHM4LQ2DPXTXX5Q X-MailFrom: bakul@iitbombay.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] job control (Re: Re: FD 2 List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Jan 30, 2023, at 8:19 AM, Ralph Corderoy wrote: >=20 > =EF=BB=BFHi Bakul, >=20 >>> There was no job control on plan9 and I can't say I ever missed it. >>=20 >> Just yesterday I realized running two =E2=80=9Cmake -j 8=E2=80=9D in para= llel was >> making them both go real slow so I stopped one of them with ^Z and >> continued it once the other make finished. This use case can=E2=80=99t b= e >> handled with more windows. >=20 > If I lacked job control in that situation, I'd either SIGSTOP one of the > two with kill(1) for a later SIGCONT or renice it to hardly get a look > in until its peer had finished. (The TTY's susp character for job > control is SIGTSTP.) Unfortunately renice command can only be used by mere users to *increase* niceness, not decrease. Agreed that you don=E2=80=99t need a tty discipline for SIGSTOP but it is quite convenient! Note that even plan9 allows killing a process by hitting a single key but I suppose that is done in a different way. Steve Nickolas made a comment about how rerunning make should simply continue from where it left off. Unfortunately many do not. A typical silent error is an output file is created but the program is killed before it can finish the job. The next time around this program won=E2=80=99t run since the output already exists! Or you have a =E2=80=9Cma= ke world=E2=80=9D situation where everything is removed before building anything!=