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=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12120 invoked from network); 22 Jun 2023 19:43:45 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 22 Jun 2023 19:43:45 -0000 Received: (qmail 32704 invoked by uid 89); 22 Jun 2023 19:44:10 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 32697 invoked from network); 22 Jun 2023 19:44:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687463021; x=1690055021; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:date:from:from:to:cc:subject :date:message-id:reply-to; bh=or+wv0tKBKilQ0UdmP1i8W3B2mOHSRP5+dq6+Js+lRo=; b=Br5YPgBGofviDaNDPEuncrl+EEmgAmOG/eNsTikvQADn5o77NRwWYISl5a2GY3Sfm1 SbGkyu9eNeRUYqPsaRkddaW+LKiCIu6bToHsE+gAGcscU/HlG2C4tYJbM00bcCAFjMkh 79wCONDjnh8r156iYSDdknWYms5kH3Z8foehd1FjaeZGPPAWfCZBS9C3NDlav2WkTZDZ bc5iCe2gHadBOyvlx9/fIOyUfl6sd3pZdu6733IwEC/knIAfI578pjvNPGRtAqj4DtCJ usrOD05bL1K/hs/p+WJBVOvXpfah6aFOXnzaKnm8hYKtGftjdSCOaCqlWLsdBfQmlYIe WUkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687463021; x=1690055021; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:date:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=or+wv0tKBKilQ0UdmP1i8W3B2mOHSRP5+dq6+Js+lRo=; b=OmO79A39SAOSW+MJTU05oTxAo2FuPC/hOj4nlqQCdnclIm6KS4swiYim5vHsx+dhm8 gQuAEwEOmicrXl65NUPJ7mvuMr6IoQOJiDyTmXv5SNlVLKL/3d5STO8o+1EKTkTXw6Rz 5KX7QviZRWOkSmeLbwfbuV1mUFWP0mmxdf1lJMynziNg38oVRj2nDb80onKcQTeW4bmP HNHjAWf179w0uJ1b+KFjiv/1tUFOST8EmBnzac23ikdxu+aBEHxO9PnQm6P2rubwiL2h VwSXv0ZZ7F0oY4JhbhI6pFF6SMhSNnowHyCqsRWb2cOiIiLWuH0vfcLechm5F63VC6XI hQCQ== X-Gm-Message-State: AC+VfDxxamo+Rk4skUZAbR2tMT9rbJP8U/uBk2Y51QudJVIUpACwazso TYZIu4esO/1+Xp9C1Cdh7usDR4zzPJw= X-Google-Smtp-Source: ACHHUZ5PvoW5hsiXODBDCaF6q6610TFciW7WovVDps4v7yl6rd6dVlpbM7X6RBzUWet+xrZxbZC2qg== X-Received: by 2002:a05:6a00:23c5:b0:668:7744:10de with SMTP id g5-20020a056a0023c500b00668774410demr11585609pfc.9.1687463021270; Thu, 22 Jun 2023 12:43:41 -0700 (PDT) From: "Casper Ti. Vector" X-Google-Original-From: "Casper Ti. Vector" Date: Fri, 23 Jun 2023 03:43:38 +0800 To: supervision@list.skarnet.org Subject: Re: A program that can get exactly the log of a supervised process? Message-ID: Mail-Followup-To: supervision@list.skarnet.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Fri, Jun 23, 2023 at 03:39:39AM +0800, Casper Ti. Vector wrote: > + if (!argv[0] || !argv[argc1 + 1]) strerr_dief1x (100, "empty program"); > argv[argc1] = 0; Well, these two lines should be swapped. Sorry for the spam :( -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2024.09.30) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C